Getting field values outside of loop
-
Is it possible to get field values outside of the loop for single page. something like:
$args = array(‘post_parent’ => $post->ID,’post_type’=>’page’);
$tester=get_children($args);
foreach($tester as $test){
echo get_post_meta( $test->ID, ‘_simple_fields_fieldGroupID_1_fieldID_1_numInSet_0’, true );
}I’ve tried the different approaches in the documentation, none work.
Also for repeating fields.Any help is much appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Getting field values outside of loop’ is closed to new replies.