I have some functions into my pre_get_posts filter. So, the problem is that when I set a meta_query, all the menus disappear from the page.
function propersearchfilter($query) {
$taxarray = array();
$metaarray = array();
array_push($metaarray , array(
'key' => 'wpcf-market',
'value' => 'forsell',
'compare' => 'LIKE'
));
$query->set('meta_query', $metaarray);
return $query;
}
add_action('pre_get_posts', 'propersearchfilter', 1);