[wp-trac] [WordPress Trac] #8683: exclude_tree in wp_list_pages not
working consistently
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 20 05:29:55 GMT 2008
#8683: exclude_tree in wp_list_pages not working consistently
--------------------------+-------------------------------------------------
Reporter: jayp | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version: 2.7
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
The exlcude_tree parameter in the template tag wp_list_pages is not
working reliably for me. I have a situation with pages and child pages,
and when using the following,
{{{
wp_list_pages('title_li=&sort_column=menu_order&exclude_tree=2,50,51,379');
}}}
shows page 379 and its child nodes and shows the child nodes of 51 but not
51 itself.
Changing the function to:
{{{
wp_list_pages('title_li=&sort_column=menu_order&exclude=2,50,51,379&exclude_tree=2,50,51,379');
}}}
Then hides 379 but not its child nodes. The child nodes of 51 also remain
visible.
I've moved 379 and 51 to various levels in the pages hierachy. I've set
their status to draft and then published them again. Nothing makes a
difference.
I'm terribly sorry I can't be more specific for the conditions that are
causing the bug. I am happy to allow someone to look at the database and
site if need be.
--
Ticket URL: <http://trac.wordpress.org/ticket/8683>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list