Listing a parent page and its children
I wanted to have a set of pages – a parent and sub-pages or child pages – that I could use as a separate menu down on the footer (for privacy, disclaimers, etc.). The issue was, how to code WordPress to display them as a single list of pages.
First I tried this:
<ul>
<?php wp_list_pages('title_li=&include=416&depth=2'); ?>
</ul>
thinking that the “depth” parameter would pick up the children of 416. But that didn’t work, and the only thing I could find that does work is:
<ul>
<?php wp_list_pages('title_li=&include=416'); ?>
<?php wp_list_pages('title_li=&child_of=416'); ?>
</ul>
Anybody have a better solution?





