Category: dev
-

WordPress Snippet: show all child pages of a page
Here is a pretty handy snippet that will display all the child pages of the current page: <?php $children = wp_list_pages(‘title_li=&child_of=’.$post->ID.’&echo=0′); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>