[wp-trac] [WordPress Trac] #43184: WP REST API: Filter page / post lists based on permalink

WordPress Trac noreply at wordpress.org
Tue Jan 30 22:03:50 UTC 2018


#43184: WP REST API: Filter page / post lists based on permalink
-------------------------+-------------------------
 Reporter:  miztroh      |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  REST API     |     Version:  4.7
 Severity:  normal       |  Resolution:  worksforme
 Keywords:               |     Focuses:
-------------------------+-------------------------
Changes (by johnbillion):

 * status:  new => closed
 * version:  trunk => 4.7
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 Yep! There's a `slug` parameter that you can use. It doesn't accept the
 full permalink, just the slug of the post which in your example is `hello-
 world`.

 Docs here: https://developer.wordpress.org/rest-api/reference/posts/

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


More information about the wp-trac mailing list