Created
March 26, 2014 09:20
-
-
Save anonymous/9779510 to your computer and use it in GitHub Desktop.
Correct code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('genesis_entry_content', 'loop_custom_content'); | |
function loop_custom_content() { | |
global $cfs; | |
$fields = $cfs->get('parenttest'); | |
if (!empty($fields)) { | |
foreach ($fields as $field) { | |
echo $field['childtest1']; | |
echo $field['childtest2']; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment