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?

Comments, Corrections, Suggestions?

All trademarks and copyrights appearing on this website are the property of their respective owners. All rights Reserved.

Help Panel

I get an error message when I try to replay a video.
Most videos on this site are URL protected. If you don't watch a video within a minute, the URL expires. So if you want to replay a video, just refresh the page.

Key to Icons

  • Requires Administrator level
  • Video about a plugin
  • Browser issue
  • Video is a tutorial

WordPress Versions

  • Version 2.8
  • Version 2.9
  • Version 3.0
  • Version 3.1
  • Version 3.2
Help