[wp-trac] [WordPress Trac] #29975: exclude_tree doesn't work in wp_list_pages

WordPress Trac noreply at wordpress.org
Wed Mar 25 21:37:17 UTC 2015


#29975: exclude_tree doesn't work in wp_list_pages
------------------------------------------+------------------------------
 Reporter:  onetrev                       |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Posts, Post Types             |     Version:  4.0
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by dkotter):

 So tried reproducing this today and was not able to, things worked fine
 for me. I'm using 4.2-beta2 for reference.

 I tried using both the comma-delimited string notation:
 {{{wp_list_pages( array( 'exclude_tree' => '1,2,3' ) );}}}

 and using an array:
 {{{wp_list_pages( array( 'exclude_tree' => array( 1, 2, 3 ) ) );}}}

 and didn't experience any issues with either approach. Both excluded all
 pages (and any descendant pages they might have) that I passed in, not
 just the first one.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29975#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list