Filter terms not working properly in rest API


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[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?

arjun sreekumar 4 years 2019-11-05T01:44:03-05:00 0 Answers 54 views 0

Leave an answer