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
- Need help with Query Loop. Need to get current taxonomy term and its posts and group them by a different selected taxonomy term
- When should you use WP_Query vs query_posts() vs get_posts()?
- Can I force WP_Query to return no results?
- order by numeric value for meta value
- Post_count only shows the number of results per page
- Wp get all the sub pages of the parent using wp query
- Return only Count from a wp_query request?
- How to query for most viewed posts and show top 5
- WP Query where title begins with a specific letter
- How can I create a taxonomy meta-box with search suggestions but no new terms input?
- WP_Query vs get_posts
- Show posts without term
- WP_Comment_Query pagination, delving into the unknown
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- WP query taxonomy input differs to output?
- Make a WP Query search match exactly the search term
- WP_Query: query posts by ids from array?
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- Sort posts by category name and title
- How to uniquely identify queries?
- What is the most efficient way of querying posts based on visits and date for current day?
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Custom WP_Query order by post_meta and (author) user_meta
- Query WooCommerce orders where meta data does not exist
- How to display post from current Taxonomy in archive page?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- WP_Query for WooCommerce Products
- pre_get_posts with get_posts
- Display posts the match taxonomy term linked from wp_list_categoies?
- Tracing the life of a query
- author.php with ACF and CPTs
- Want to redirect if search query match exact title of any post
- Query Custom Meta Value with Increment
- When should you use wp_reset_postdata vs wp_reset_query?
- Get list of posts which have at least one term from a custom taxonomy with WP_Query
- Get posts by meta data OR title
- Identify which loop you are hooking into; primary or secondary?
- Perform query with meta_value date
- WP_Query ordered by custom field that is a date string?
- How to make an activities stream mixing posts and comments?
- Duplicate Queries
- How to query for a week using key => value WP_Query argument notation?
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- Pagination not working for Custom search form & custom result template
- How to support multiple search terms query within one process?
- How to create a WP_Query to search the Title or Tag?
- Show only oldest post by author