I just installed this plugin to help me improve the search functions on a site I’m working on. Included fields for a couple custom taxonomies in the search form along with the “s” input. That works fine.
The problem is, now all of my pages which rely on custom get_posts or WP_Query queries started returning everything. I added a line to the function pre_get_posts() like this :
if (!is_search()) return; //ie only add this processing on search pages
Seems to function the way I want. I can’t tell if there’s a better way of doing this, though. And… should this plugin be overriding custom queries that include taxonomy queries to begin with?
- The topic ‘[Plugin: Query Multiple Taxonomies] How to keep this from overriding custom get_posts queries’ is closed to new replies.