Fellow wordpressers,
After scratching my head for a little while, I have placed an unordered list into one of my sidebar widgets (one of many) as follows. (# replaces the actual page ID)
<div>
<ul class="links">
<?php wp_list_pages("depth=1&title_li=&sort_column=menu_order&child_of=#"); // display ONLY the sub pages of page xxx ?>
<?php end ?>
</ul>
</div>
Each page concerned has a featured thumbnail attached to the page and I would like to incorporate the thumbnail into the lists down the sidebar using the FOREACH function. I'm presuming this will be by adding the_post_thumbnail, however I don't know how to set it up correctly.
i.e. foreach(array) { the_post_thumbnail; }
Many thanks in advance