Title: Include/ Exclude pages in Nav
Last modified: August 19, 2016

---

# Include/ Exclude pages in Nav

 *  Resolved [rmo120](https://wordpress.org/support/users/rmo120/)
 * (@rmo120)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/include-exclude-pages-in-nav/)
 * I’m trying to include or exclude pages from my nav. Actually I’m also trying 
   to create a copy of the main template, but change the nav pages to that page.
 * I’ve used the
    <?php wp_list_pages(‘exclude=3&depth=2&title_li=&sort_column=menu_order’);?
   >
 * and it doesn’t seem to work correctly. Sometimes doing the opposite ie: if I 
   wanted to INclude page 3, then putting EXclude would do something.
 * Now it’s almost all or nothing. Sometimes depending on what number I put, it’ll
   either take all of the pages out, put them all in, or maybe just include say 
   page 1, but not because that’s what I put.
 * The main page is page 1-5. On the new page nav I want, say 10-15.
 * I’ve read in other posts to number pages 5, 10, 15, 20. Why is this?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/include-exclude-pages-in-nav/#post-1347576)
 * Make sure you are using the correct Page IDs in the `include=` or `exclude=` 
   arguments.
 * [How do I determine a Post, Page, Category, Tag, Link, Link Category, or User ID?](http://codex.wordpress.org/FAQ_Working_with_WordPress#How_do_I_determine_a_Post.2C_Page.2C_Category.2C_Tag.2C_Link.2C_Link_Category.2C_or_User_ID.3F)
 * Also see:
    [Pages](http://codex.wordpress.org/Pages) [wp_list_pages()](http://codex.wordpress.org/Template_Tags/wp_list_pages)
 *  Thread Starter [rmo120](https://wordpress.org/support/users/rmo120/)
 * (@rmo120)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/include-exclude-pages-in-nav/#post-1347619)
 * Cool…thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Include/ Exclude pages in Nav’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [rmo120](https://wordpress.org/support/users/rmo120/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/include-exclude-pages-in-nav/#post-1347619)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
