[wp-hackers] meta_query with same key twice
Robert Lusby
nanogwp at gmail.com
Mon Jan 16 16:28:21 UTC 2012
Hello,
Found another "feature" of WP - meta_query doesn't work if you set the
same keyname twice and a relation of "OR"?
Is this correct? Or is my query off?
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'keyname',
'value' => 'test',
'compare' => '='
),
array(
'key' => 'keyname',
'value' => 'somethingelse',
'compare' => '='
),
)
Cheers,
Rob
More information about the wp-hackers
mailing list