Filter not Filtering.
-
I have been trying for some time now to get this plugin to work as expected. I tried going through github isue #13 to no avail.
I want to be able to filter the results i am given by an acf field.
I have tried just searching it like so, which seems to do the trick, but is less than ideal and fairly unreliable.
$json = wp_remote_get( site_url() .'/wp-json/wp/v2/posts?filter[s]=2010' );
When I try to filter it by doing the I following, I am given the standard last 10 posts:
$json = wp_remote_get( site_url() .'/wp-json/wp/v2/posts?filter[meta_key]=year&filter[meta_value]=2010' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Filter not Filtering.’ is closed to new replies.