<?php wp_list_pages(); ?>
Lists all of the pages and subpages
Sorts by menu order and then title (by default, all pages are 0)
Uses “Pages” as a heading
To Change the Title:
<?php wp_list_pages(‘title_li=Departments’); ?>
To Hide the Title:
<?php wp_list_pages(‘title_li=’); ?>
Exclude Pages:
<?php wp_list_pages(‘exclude=17,38’ ); ?>
Change Depth:
<?php wp_list_pages(depth=1); ?>
Multiple Options:
<?php wp_list_pages(‘title_li=&depth=1’); ?>