ACF Multiple select list
-
Hi!
I use your plugin with ACF v4.4 (free edition) and have some problems filtering multiple list selection:
considering a JSON looks like this:
“acf”:{
“mykey1″:”simpleValue1”,
“mykey2”:[“Choise1”],
“mykey3″:”simpleValue2”,
“mykey4”:[“Choise1″,”Choise2″,”Choise3”]
}for simple text field, I use:
https://localhost/wordpress/wp-json/wp/v2/products?
&filter[meta_key]=mykey1
&filter[meta_value]=simpleValue1and with conditions:
https://localhost/wordpress/wp-json/wp/v2/products?
filter[meta_query][0][key]=mykey1
&filter[meta_query][0][value]=simpleValue1
&filter[meta_query][1][key]=mykey3
&filter[meta_query][1][value]=simpleValue2
&filter[meta_query][relation]=ORIt works fine!
But for my multiple select list (fields “mykey2” and “mykey3”) it should be:
https://localhost/wordpress/wp-json/wp/v2/products?
filter[meta_query][0][key]=mykey3
&filter[meta_query][0][value][0]=Choise1
&filter[meta_query][0][value][1]=Choise2
&filter[meta_query][0][compare]=INOR
https://localhost/wordpress/wp-json/wp/v2/products?
filter[meta_query][0][key]=mykey3
&filter[meta_query][0][value]=Choise3but these url does not work for me ??
Could you help?
- The topic ‘ACF Multiple select list’ is closed to new replies.