Any Support for filtering search queries in the future? [Edit: It already does]
-
Do you plan to add support to allow filtering of results generated from queries like
/wp/v2/posts?categories=1
so that any posts returned can be filtered? If I try that now I get the following error (likely because the built-in API is trying to parse the?fields=...
):{ "code": "rest_invalid_param", "message": "Invalid parameter(s): categories", "data": { "status": 400, "params": { "categories": "categories[0] is not of type integer." } } }
Edit: Figured it out. This plugin does filter out search results. I had a syntax error and was doing
/wp/v2/posts?categories=1?fields=id
instead of/wp/v2/posts?categories=1&fields=id
Great Plugin, thanks again.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Any Support for filtering search queries in the future? [Edit: It already does]’ is closed to new replies.