Title: listing pages
Last modified: August 18, 2016

---

# listing pages

 *  [Wordy](https://wordpress.org/support/users/wordy/)
 * (@wordy)
 * [20 years ago](https://wordpress.org/support/topic/listing-pages/)
 * I have a list of 10 pages, lets just say with pages ids 1 to 10.
 * I list the pages in the side bar using the standard wp_pages syntax
 * <?php wp_list_pages(‘sort_column=menu_order’); ?>
 * and I can exclude page lets just say 8
 * <?php wp_list_pages(‘exclude=8&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>
 * What I would now somehow like to be able to do is add another list in the side
   bar which would list just page id 8 and any sub pages it may have.
 * I dont really want to use the exclude option, say exclude pages 1,2,3,4,5,6,7,9,10
   as this will be messy when it comes to maintaining the site.
 * Any help or ideas greatly appreciated

Viewing 1 replies (of 1 total)

 *  [lhk](https://wordpress.org/support/users/lhk/)
 * (@lhk)
 * [20 years ago](https://wordpress.org/support/topic/listing-pages/#post-384641)
 * If you do not want to exclude the pages from a tag, you can also just handcode
   a short links list into the sidebar.
 * That’s however only practical if you don’t often change pages around, or constantly
   add new ones.

Viewing 1 replies (of 1 total)

The topic ‘listing pages’ is closed to new replies.

## Tags

 * [wp_list_pages](https://wordpress.org/support/topic-tag/wp_list_pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [lhk](https://wordpress.org/support/users/lhk/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/listing-pages/#post-384641)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
