0

I have a response consisting of many fields, I customized my endpoint to retrieve the tag_list array that contains details about all the tags associated with a post, including the name, like this:

tag_list": [
{
"term_id": 27,
"name": "accident",
"slug": "accident",
"term_group": 0,
"term_taxonomy_id": 27,
"taxonomy": "post_tag",
"description": "",
"parent": 0,
"count": 1,
"filter": "raw"
},
{
"term_id": 26,
"name": "art",
"slug": "art",
"term_group": 0,
"term_taxonomy_id": 26,
"taxonomy": "post_tag",
"description": "",
"parent": 0,
"count": 1,
"filter": "raw"
}
],

Is there a way to query the url like https://my-site/wp-json/wp/v2/post?search=whatever, so that it searches only in tag_list[name] ?

It seems this was possible before with filter, but it has been deprecated. Is there any other way of doing this now?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.