Filter terms not working properly in rest API
Question
I’m using rest-api plugin to fetch flight details from wordpress. I had registered a custom taxonomy called ‘searchflight’ with terms corresponding to country,city and flight.
My problem is that when I call
example.com/wp-json/wp/v2/posts?_embedfilter[category_name]=en&filter[searchflight]=UAE&filter[terms]=kuwait&filter[terms]=KW018
I API could read the custom taxonomy but couldn’t get filtered by the terms. I’ve already tried using the rest-filter plugin but that too isn’t working.
Is there a workaround for getting posts based on the custom taxonomy and custom terms?
0
rest-api
4 years
2019-11-05T01:44:03-05:00
2019-11-05T01:44:03-05:00 0 Answers
54 views
0
Leave an answer