[wp-trac] [WordPress Trac] #43591: WordPress REST 2.0 - Media/Post orderby=order

WordPress Trac noreply at wordpress.org
Thu Mar 22 17:22:47 UTC 2018


#43591: WordPress REST 2.0 - Media/Post orderby=order
-----------------------------+-------------------------
 Reporter:  spiritofelric    |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  REST API         |     Version:  4.9.4
 Severity:  normal           |  Resolution:  worksforme
 Keywords:                   |     Focuses:  rest-api
-----------------------------+-------------------------
Changes (by schlessera):

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


Comment:

 The `order` column for attachments is already usable through the WP REST
 API, but it is mapped to the argument `menu_order`, not `post_order`.

 So, this should already work as expected if you query against `menu_order`
 instead of `post_order`.

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


More information about the wp-trac mailing list