Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2014 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9779510 to your computer and use it in GitHub Desktop.
Save anonymous/9779510 to your computer and use it in GitHub Desktop.
Correct code
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