Orderby in Rest API
-
Hello, and thank you for this marvelous plugin. I was wondering, is there a way i could pass the orderby in the Rest API, because my site uses the Rest API to fetch the posts (via Backbone Routing).
Something like:
Archive["home"].url = [apiUrl, 'wp/v2/posts/?filter[orderby]=menu_order&filter[posts_per_page]=16&page=1&', $query, '&_embed'].join('');
assuming the “menu_order” is the order used by your plugin.
Thank you
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Orderby in Rest API’ is closed to new replies.