I have this piece of code and it works just fine:
$search = array(
'meta_query' => array(
array(
'key' => 'wpcf-community-city',
'value' => $search_param,
'compare' => 'LIKE'
)
)
);
But when I change to this, it stops working.
$search = array(
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'wpcf-community-city',
'value' => $search_param,
'compare' => 'LIKE'
),
array(
'key' => 'wpcf-community-state',
'value' => $search_param,
'compare' => 'LIKE'
),
array(
'key' => 'wpcf-community-zip',
'value' => $search_param,
'compare' => 'LIKE'
)
)
);
I'm using Wordpress 3.4.2
PS: This piece of code is a part of the query_posts() parameters.
get_sqlmethod to see what SQL it's actually generating? - andrewsi