Forums
Home / Plugins / Hacks / wp_list_pages – help exluding pages
(@igorx81)
12 years, 7 months ago
In this code: http://codex.wordpress.org/Function_Reference/wp_list_pages#List_current_Page.2C_ancestors_of_current_page.2C_and_children_of_current_page
I’d like to exclude some pages from displaying, but in $sidelinks = wp_list_pages() it’s not working, so I thing I should put it somewhere else (maybe in $result) but I do not know how.
Also, how would it be possible to list all the subpages when in a subpage, like in http://codex.wordpress.org/Function_Reference/wp_list_pages#List_subpages_even_if_on_a_subpage ?
Thanks a lot 😉
Explaining better. In the first code, I’d like:
1. to exclude some pages from being displayed (listed)
2. when in one of the last subpages (with no children), to list all the subpages and not only that one.
Thank you