[wp-trac] [WordPress Trac] #39369: The document of wp_list_pages() is not clear.
WordPress Trac
noreply at wordpress.org
Sun Jan 29 10:39:27 UTC 2017
#39369: The document of wp_list_pages() is not clear.
-------------------------------+--------------------
Reporter: doublehhh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs
-------------------------------+--------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 4.8
Comment:
Replying to [comment:2 swissspidy]:
> `wp_list_pages()` does not support setting the post type in `$args`.
I think it does, as it passes the list of arguments directly to
`get_pages()`, and `post_type` is [source:tags/4.7.2/src/wp-includes/post-
template.php?marks=1153#L1128 one of the documented arguments] in both
functions.
I've just tested `wp_list_pages()` with a hierarchical CPT, and it works
as expected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39369#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list