I want/need to use the wp-list-pages tag for the navigation on an existing theme. I'd like to exclude some of the links but everything ive found said use the page id number. well im using permalinks and when i use the name it doesnt work.
Anybody know how to make that happen?
i could also live with saying just show these pages, and that might even be better as new pages are sure to be added.
Permalinks have nothing to do with it. You still need to use the page id number. Either include the pages you do want or exclude the pages you don't want.
Something like this will do the job and not affect your permalinks
For some obscure reason the WP developers removed the simple access to the page id several builds ago. So yeah, edit this page or hover over the page link in the backend with Firefox to see the id number.
I'd like to exclude some of the links but everything ive found said use the page id number.
well im using permalinks and when i use the name it doesnt work.
Anybody know how to make that happen?
i could also live with saying just show these pages, and that might even be better as new pages are sure to be added.
help?
Either include the pages you do want or exclude the pages you don't want.
Something like this will do the job and not affect your permalinks
<ul><?php wp_list_pages('include=3,5,7,9,11&title_li='); ?></ul>Just use your own page numbers.
thanks
So yeah, edit this page or hover over the page link in the backend with Firefox to see the id number.