• Resolved ben4d85

    (@ben4d85)


    How can I get the featured image for a page using wp_list_pages (or sth similar)?

    I currently use this code to get all child-pages of a parent-page:

    $children = wp_list_pages('title_li=&child_of='.get_the_ID().'&echo=0&show_date=modified&depth=1');
    if ($children) { ?>
    	<ul class="parent_toc">
    		<?php echo $children; ?>
    	</ul>
    <?php } ?>

    Now how can I modify this to get it to also output the featured image?

The topic ‘Featured Image with wp_list_pages ?’ is closed to new replies.