In our functions.php file we have a simple "pre_get_posts" filter that modifies the meta_query of the main query but it doesn't seem to be affected regardless of what we try to put there. It seems to be that lift is overwriting this.
Here is a condensed and summarized code for that filter, if needed:
Hello,
In our functions.php file we have a simple "pre_get_posts" filter that modifies the meta_query of the main query but it doesn't seem to be affected regardless of what we try to put there. It seems to be that lift is overwriting this.
Here is a condensed and summarized code for that filter, if needed:
function SearchFilter($query) { $query->set('meta_query',array( array( 'key' => 'meta_key', 'value' => true ) )); }
add_filter('pre_get_posts','SearchFilter');
How should we resolve this?