Unable to make the Filters work
-
If I have a custom Post type and I can view the results by GET:
https://localhost/wordpress/wp-json/posts?type=custom_postsI get the results as:
{ "ID":130, "title":"Title goes here", "status":"publish", "type":"custom_posts", ..... "field_status":"1" }
Now how do I filter the custom post types by the filter “field_status” where the value is “0” for example. So far nothing is working for me.
I tried to make it work like:https://localhost/wordpress/wp-json/posts?type=custom_posts&filter['field_status']=1
and so on, but didn’t work.
Anyone to help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unable to make the Filters work’ is closed to new replies.