query_vars overriding WP_Query args

I don’t think this is doing what you think it’s doing, but there’s a trivial solution Use The s parameter with a pre_get_posts filter Using s as the name of your input will allow you to do a direct search via the main query, speeding up the page load. Additionally, you can then modify the … Read more

is_search called incorreclty

Hey Mike and welcome to the WordPress Stack Exchange! First, it’s good form to always include the code you use (or a link to where you found it) if you mention it in your post. This error comes up when you use it prior to the search being run. The WordPress Codex doesn’t have a … Read more

Advanced search for meta fields

The meta_query parameter must be an array of array if you want to add relation between different key, even they only one key to grab. So $query->set( ‘meta_query’, $meta_query ); Must be $query->set( ‘meta_query’, array($meta_query) ); You can have a look to WP_Query for more details. Hope it helps and work, I just look for … Read more