I’m trying to build combined meta_query queries but they don’t work.
Any ideas how I can implement queries like the example below?
Thanks, Hinnerk
Array
(
[relation] => AND
[0] => Array
(
[key] => price
[value] => 1000
[type] => numeric
[compare] => <=
)
[1] => Array
(
[relation] => OR
[0] => Array
(
[key] => roomcount
[value] => 3
[type] => numeric
[compare] => >=
)
[1] => Array
(
[key] => bathroomcount
[value] => 2
[type] => numeric
[compare] => >=
)
)
)
Using your constructed array, I think this is the correct syntax:
You might also try nesting
meta_query
one more level (though I don’t know if that will work):