Hi,
I'm using the following code to display a pages subpages;
<?php
// If CHILD_OF is not NULL, then this page has a parent
// Therefore, list siblings i.e. subpages of this page's parent
if($post->post_parent){
wp_list_pages('title_li=&include='.$post->post_parent);
wp_list_pages('title_li=&child_of='.$post->post_parent);
}
// If CHILD_OF is zero, this is a top level page, so list subpages only.
else{
wp_list_pages('title_li=&include='.$post->ID);
wp_list_pages('title_li=&child_of='.$post->ID);
}
?>
</ul>
And it's working perfectly. However, these subpages are galleries and I would love to display the page thumbnail in the outputted list so that the user catches a glimpse of the gallery instead of just seeing a text link.
Surely there's any easy way to do this!