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?
- The topic ‘Include/ Exclude pages in Nav’ is closed to new replies.