voceconnect / lift-search

Lift Search for WordPress
14 stars 12 forks source link

pre_get_posts meta_query is not working #67

Closed TELUS-Alexander closed 10 years ago

TELUS-Alexander commented 10 years ago

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?

csloisel commented 10 years ago

Sorry for the delay, but I'm unable to replicate this issue. Was the problem ever resolved?