Sort order not working (WP API)
-
Hey guys!
When I try to use WP API + post Searching wp-json/wp/v2/posts?search=&page=1&perPage=100 the sorting that your pluggin creates doesn’t apply, I’ve also tried adding a orderby to my query but it doesn’t come up as an option as I get the following error: orderby is not one of author, date, id, include, modified, parent, relevance, slug, include_slugs, title.
Is there any way to fix it so that this default search is set to your ordering system OR a way to add your orderby to the WP API’s search?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Sort order not working (WP API)’ is closed to new replies.