im using wp_query to query posts from a certain taxonomy as followed :
$location=urldecode($_GET['location']);
$property_type=urldecode($_GET['propertyType']);
query_posts(array(
'numberposts'=>-1,
'post_type'=>'property',
'property-type'=>$property_type,
'location'=>$location,
'meta_query'=>array(
array('key'=>'wpcf-price','value'=>$amount[0],'compare'=>'>=','type' => 'numeric'),
array('key'=>'wpcf-price','value'=>$amount[1],'compare'=>'<=','type' => 'numeric')
),
'suppress_filters'=>false
));
it is working as expected most of the time except for this string (which is
תל – אביב יפו
it seems that the minus sign somehow messes up the search,
how can i solve this ?
is there a way to use a “LIKE” statement here ?
Found the problem,
I queried the location meta using the $term->name instead of $teadm->slug which solved the issue.