• I need to display custom field data from all subpages of a parent page in the loop. Here is the code to display all of the featured thumbnail images of subpages in the loop. But I need to convert this code to display a custom field variable instead. Can anyone help me with this? Here is the featured thumbnail code below:

    <?php query_posts(array('post_parent' => 19, 'post_type' => 'page')); while (have_posts()) { the_post(); ?>
                <?php if ( has_post_thumbnail() ) {?>
                    <?php the_post_thumbnail(); ?>
                <?php } else { ?>
                    <!-- Else Don't show anything -->
                <?php } ?>
        <?php } ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display Custom Field Data In Loop’ is closed to new replies.