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

WordPress Trac noreply at wordpress.org
Mon Apr 23 22:33:31 UTC 2018


#39965: REST API: not possible to request collection of posts across post types
-------------------------+-----------------------
 Reporter:  iseulde      |       Owner:  jnylen0
     Type:  enhancement  |      Status:  assigned
 Priority:  high         |   Milestone:  5.0
Component:  REST API     |     Version:  4.7
 Severity:  normal       |  Resolution:
 Keywords:  rest-api     |     Focuses:
-------------------------+-----------------------

Comment (by danielbachhuber):

 Looping back on this issue, I think we need a read-only `wp/v2/search`
 endpoint that returns matching objects with `title`, `link`, and possibly
 `excerpt`.

 By default, the endpoint would only return searchable posts where
 `show_in_rest=true`. However, a plugin could easily register more fields
 to the returned objects, use ElasticSearch to pull in a mixture of data
 (comments, users, etc.), and so on.

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


More information about the wp-trac mailing list