You did not return the new $query; that’s why it’s not working for you.
$query = new WP_Query( $taxquery );
return $query;
Related Posts:
- tax_query shows no results if nothing is selected
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- WordPress tax_query “and” operator not functioning as desired
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- WP_Query, tax_query and term_meta: How to?
- showing all search result in one template
- Tax Query only returns for the first of several terms
- How to print term name inside wp post loop
- How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
- list all post who have mutual taxonomy as current taxonomy!
- Optimal way to make tags in tax_query optional?
- How can I get all the posts that are related with a specific taxonomy term?
- How to combine nested tax_query logic with other nested query logic?
- tax_query not working for taxonomy slug
- Custom query for tag and custom tag from 2 post type
- How to get hierarchical number of custom taxanomy
- WordPress WP_Query Array Custom search via taxonomies
- Custom Taxonomy in custom REST API search
- Adding a language rule and displaying posts with a custom taxonomy term on its archive page
- Can I force WP_Query to return no results?
- Escaping WP_Query tax_query when term has special character(s)
- Tax_query terms ID’s using variable
- The Operator “NOT IN” Does Not Work In tax_query
- Want to redirect if search query match exact title of any post
- How to support multiple search terms query within one process?
- Custom archive page based on array of categories and tags
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- How to extend tag and category “Related Posts” query to custom post_type if the first 2 terms have no posts
- Search – Ajax – Alter Query Parameters with Pagination
- Change default ordering of taxonomy terms – pre_get_terms
- Including only current user’s posts in search
- How can i simulate “taxonomy__in” in query?
- Custom category search box for WordPress
- Refine search results using WP_Query
- Search Posts with Custom Fields as query
- Order posts by taxonomy count
- Fastest way of counting posts of a custom post type in a specific taxonomy term?
- Is it a good idea to improve meta query performance by adding tax query?
- WP_Query | Tax_Query Relation | Unable to use ‘OR’ as it then allows all products, help me finish my query?
- WordPress pagination not working on template search.php
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- query_vars overriding WP_Query args
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- How to make search for posts using get method?
- wp_query args adding muitiple tax_querys
- Hiding taxonomies with no children WP_Query & tax_query
- Advanced search form with filters for custom taxonomies
- tax_query not working in template
- using pre_get_posts for search results not found
- Custom taxonomy.php not working
- WP_Query for a taxonomy with different taxonomy types
- Finding WordPress Posts assigned to multiple categories
- Get a list of posts by specific category
- WP_Query parameter conflict
- How to do a particular wp_query taxonomy search
- How to add custom meta to ‘pre_get_terms’?
- Redirect Search to Form When No Product Results Are Found
- Issues with search after added meta_query
- One WP_Query that always shows 1 post from category X and 1 post from “not in category X”?
- Get posts in taxonomy randomly
- Sorting search results with custom dropdown
- Searching not only by post name but also category
- Any quicker alternative for WP_Query “NOT IN”
- Tax Query on product_cat using NOT IN as operator does not exclude that category
- Block internal search queries with pre_get_posts and regex rules
- How to make the WP query search for the “s” arg in other places too
- Search Exact on WordPress – Relevannsi Solution Not Working
- Excluding posts from search results page with meta query not working
- custom post type and a “sticky” position taxonomy
- I have problems with the search query using multiple post types
- WP_Query for a taxonomy value OR a custom post type meta field
- wp_query with meta_query and tax_query
- Select multiple categories with is_tax
- WP Query for all events prior to current date
- How to extend WP_query to a specific table?
- Live search by custom tag
- Display Search Results by tag_ID in my search.php
- Displaying posts from sub taxonomies only
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- Logging search queries for logged-in users
- WP Query tax_query not returning posts
- How to show terms from another taxonomy
- Search Field that allows options of “Match any keyword” or “Match all keywords”
- My entry results are not consistently alphabetized
- I cannot get tax_query in get_posts() to work with custom taxonomy
- A very strange problem with search query
- In Product Category archives how to show Posts having same/similar prod_cat slug structure?
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Search format not matching taxonomy query
- Search Functionality broken by the wp 4.2 update
- List posts of terms but exclude one term
- Hiding all posts/products/pages from a site based on a custom taxonomy/domain name
- Custom search (wp query by custom fields)
- Search Query that Includes Custom Table
- Output ACF field dynamicaly within a taxonomy loop [closed]
- Why does WP_Query not search for two ‘meta_query’ keys separated with OR?
- How does Show Posts based on a keyword search work in WP_Query
- Removing filename searches when searching attachments
- WP_Query on custom taxonomy -> Location and Activity
- Rewrite URL custom search query