Look at taxonomy parameters in WP_Query,
the “Multiple Taxonomy Handling” example does pretty much what you want if I understand you correctly.
Related Posts:
- How do I search inside specific taxonomies in WordPress
- Pass array of taxonomy terms to wp_query
- How to add custom meta to ‘pre_get_terms’?
- Modify WordPress Search
- Search custom taxonomy term by name
- Why is my WP_Query not working when tax_query terms are an array?
- How to find objects by terms
- How to add terms to my tax_query based off of the current post
- Is it possible to dynamically get queried term AND taxonomy?
- Empty tax_query array returns an empty array
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Formulate a url to show posts with both taxonomy terms
- Creating a custom search for a specific post type
- Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms
- Order by slug in get_terms with multiple taxonomies
- Function get_queried_object() return NULL in custom taxonomy
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- WP_Query Not Recognizing Taxonomy Parameter in Custom Search
- Return Taxonomy/Term Information with Posts (WP_Query/get_posts)
- Editing the default wordpress search
- Get authors by term id or slug
- WP Query Args – Title or Taxonomy Value
- Slow queries on a huge database
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- Taxonomy order exception for specific term
- Modify Search Query if original Query gave no results
- Get a list of posts by specific category
- Get posts from multiple tax terms
- How to Order a list of taxonomies? orderby?
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- Can’t get term id for category archive
- How to make a post with certain taxonomy term display first before other post with only one query?
- How can I order a post query’s results based on the number of matching taxonomy terms?
- Only show tag with the same id as the post
- Save queried result into database
- Add to search posts query array with post IDS which will appear first
- Search has query that will return no results
- WP Query – Search in title or author_name
- taxquery taxonomy get terms
- How to define a custom hierarchy for terms?
- How can I modify standard search query to include also ACF custom fields values?
- How can I get all the posts that are related with a specific taxonomy term?
- Search format not matching taxonomy query
- Search Functionality broken by the wp 4.2 update
- How to get several fields from wp_query?
- Need help setting up a search form for wordpress [duplicate]
- Displaying Results From Custom Taxonomy Query
- Search query alteration not working for meta values
- How can I get taxonomy term name using term slug & post ID using build in WordPress function or class?
- Search results stuck on page 1
- Advanced Search – Is this possible?
- Rewrite URL custom search query
- Return only Count from a wp_query request?
- WP Query where title begins with a specific letter
- pre_get_posts with get_posts
- author.php with ACF and CPTs
- Query Custom Meta Value with Increment
- Identify which loop you are hooking into; primary or secondary?
- Pagination broken when merging search results with additional WP_Query
- Custom Search | Wrong output & question
- Multiple keyword search
- view queries made?
- Filter and list posts of a custom taxonomy
- Pass the same object to multiple widgets in a template with one query
- What is considered a default query for the request filter?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Search pages that are a child of the current page
- is_tax() function not working as expected
- Optional Meta Query
- Set conditional on template based on referring page slug
- Iterating through $wpdb query without using get_results for large query results
- Custom post taxonomies as tax_query terms?
- Extend product search with meta in WooCommerce
- Include data from custom table in WP_Query
- How to get a query variable?
- Taxonomy and Date in same query?
- date_query seems to be ignored by wp_query
- Add filter post_where and passing post_type argument
- 2 wordpress loops showing 1 post from same post type – how to avoid showing the same post?
- Wildcard search in WP Query
- Query where ANDing slug values not working
- change posts_orderby of the callback wp_query?
- How to SQL query posts IDs by categories AND authors?
- Search.php – return number of results but cannot loop through
- Query multiple post types, but different order for each
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How to get_comments() ordered by date and parent?
- Search with WP_Query, but ignore href URLs in anchor tags?
- how to show more than 1 post into three columns query
- Category Archive not working for pages
- Using the same WP_Query for shop and widgets in WooCommerce shop
- Get a list of the last posts grouped by author and filtered by category
- When should you use WP_Query vs query_posts() vs get_posts()?
- How to query post ids liked by the Author
- Manipulating a query
- Modify query after meta value
- Custom query for certain post type OR another post type with a certain category
- Use meta query only 3 or more results?
- Custom Taxonomy in custom REST API search
- query loop “inherit query from template” prevents setting sort order