Hello!
I got exactly the same problem while user “in” operator in meta_query with an array.
After 2 hours of research I found the solution!
The key “value” as to be “values” (with a S at the end) and the operator “IN” is going to work.
WORK:
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'centers',
'values' => $centres,
'compare' => 'in',
)
)
DOESN’T WORK
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'centers',
'value' => $centres,
'compare' => 'in',
)
)