How to make a WP REST API request with meta_query in WP 4.7?
-
Hi all,
This request in WP 4.7 doesn’t work: https://domain.tld/wp-json/wp/v2/cpt_name?meta_query%5B0%5D%5Bkey%5D=cf_name&meta_query%5B0%5D%5Bvalue%5D%5B0%5D=cf_value1&meta_query%5B0%5D%5Bvalue%5D%5B1%5D=cf_value2&meta_query%5B0%5D%5Bcompare%5D=INIt worked in WP 4.6.1
I know that there is no “filter” parameter in WP REST API for WP 4.7. I’ve tried to install this plugin: https://github.com/wp-api/rest-filter but it didn’t resolve my issue.
Best,
Luke
- The topic ‘How to make a WP REST API request with meta_query in WP 4.7?’ is closed to new replies.