#39657 closed defect (bug) (duplicate)
Posts endpoint doesn't support orderby=menu_order
Reported by: | jordan314 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | REST API | Keywords: | |
Focuses: | rest-api | Cc: |
Description
Using the WP API v2 in wordpress 4.7, you cannot query posts with orderby=menu_order which is what the plugin metronet-reorder-posts uses. The error returned is "orderby is not one of date, relevance, id, include, title, slug." This was previously possible in wordpress 4.6 with the wp-api plugin.
Change History (4)
Note: See
TracTickets for help on using
tickets.
@jordan314
menu_order
is not currently supported out of the box, you may want to comment on #38693 where we are discussing expanding whatorderby
options are supported by default.In the meantime, can enable custom
orderby
parameters using therest_post_collection_params
filter, see https://core.trac.wordpress.org/ticket/38693#comment:5