[wp-trac] [WordPress Trac] #6510: [2.5] wp_list_pages "exclude" arg
no longer works as advertised
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 31 19:17:16 GMT 2008
#6510: [2.5] wp_list_pages "exclude" arg no longer works as advertised
------------------------+---------------------------------------------------
Reporter: lyzadanger | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.5
Severity: normal | Keywords:
------------------------+---------------------------------------------------
[c'n'p'ed from a post I put in the support forums]
I just upgraded to WP 2.5.
I am building navigation on the front page of my client's site using
wp_list_pages() with some excluded pages using the "exclude" parameter.
This worked as expected in 2.3.x.
After the upgrade, the excluded pages are not showing up (expected), but
all of their sub-pages are (definitely unexpected). Additionally, they are
rendering as
LIs at the same level as the top-level pages (i.e. they are not in a sub-
list (ul) so are impossible to style invisible as a workaround). The docs
specifically say:
"Excluding a Page will also exclude all of its sub-pages from the list to
be generated."
Thanks!
--
Ticket URL: <http://trac.wordpress.org/ticket/6510>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list