I have a cf of type map, which stores data in an array, including country, city, state, etc.
I’m trying to do a query with a meta query where the key will be an item of the array not the whole array. Like so.
'meta_query' => array(
array(
'key' => get_field('location')['country'],
'value' => 'Italy',
'compare' => 'LIKE'
)
)
But it doesn’t work. It works ok if the key value passed is the whole map field (array) like so:
'key' => 'location'
Any ideas?