[wp-trac] [WordPress Trac] #39369: The document of wp_list_pages() is not clear.

WordPress Trac noreply at wordpress.org
Sat Jan 28 21:28:12 UTC 2017


#39369: The document of wp_list_pages() is not clear.
-------------------------------+------------------------------
 Reporter:  doublehhh          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  docs
-------------------------------+------------------------------

Comment (by swissspidy):

 `wp_list_pages()` does not support setting the post type in `$args`. The
 function uses `get_pages()` which in turn supports that, but not when
 called via `wp_list_pages()`.

 For [attachment:39369.patch] to be true, `wp_list_pages()` would actually
 need to support this.

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


More information about the wp-trac mailing list