[wp-trac] [WordPress Trac] #39965: REST API: not possible to request collection of posts across post types
WordPress Trac
noreply at wordpress.org
Wed Jul 26 14:01:19 UTC 2017
#39965: REST API: not possible to request collection of posts across post types
-------------------------+-----------------------
Reporter: iseulde | Owner: jnylen0
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------
Changes (by jnylen0):
* owner: => jnylen0
* status: new => assigned
* milestone: Awaiting Review => 4.9
Comment:
Let's look into this for 4.9.
I'm thinking that `/wp/v2/posts` should support a special argument like
`?any_type=true` or perhaps `?type=post,page`, `?type=*`. There may be
some difficulties due to differences in response structure (in core, posts
and pages are somewhat different, and attachments are very different).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39965#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list