Title: Hack to Pages widget
Last modified: August 19, 2016

---

# Hack to Pages widget

 *  [mackro](https://wordpress.org/support/users/mackro/)
 * (@mackro)
 * [17 years ago](https://wordpress.org/support/topic/hack-to-pages-widget/)
 * Anyone know how to change the pages interface so that instead of an exclusion
   list it’s an inclusion list?
 * My problem is that I’ve got hundreds / thousands of pages and only want a couple
   to show up in the left navigation, and I don’t want to go and exclude each one
   by one.

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years ago](https://wordpress.org/support/topic/hack-to-pages-widget/#post-1084965)
 * Consider downloading and installing [Otto’s PHP Code Widget](http://wordpress.org/extend/plugins/php-code-widget/).
 * Then put something like this in one of those widgets:
 * `<?php wp_list_pages('include=1,2,3'); ?>`
 * Please remember to support our plugin authors by clicking on the Donate button
   there.

Viewing 1 replies (of 1 total)

The topic ‘Hack to Pages widget’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/hack-to-pages-widget/#post-1084965)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
