[wp-trac] [WordPress Trac] #39965: REST API: not possible to request collection of posts across post types

WordPress Trac noreply at wordpress.org
Sat Feb 25 10:44:32 UTC 2017


#39965: REST API: not possible to request collection of posts across post types
-------------------------+-----------------------------
 Reporter:  iseulde      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:  4.7
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 See #38920 for a simple core use case.

 There seems to be no way to query posts across multiple (or all) post
 types as you can do with `WP_Query`. You have to start making multiple
 requests, which is an inconvenient and non-optimal approach? Ideally this
 should be directly passed to the server and `WP_Query`.

 Related: #39851.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39965>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list