According to the Codex, here’s how you would query posts from several taxonomies:
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'videoscategory',
'field' => 'slug',
'terms' => $custom_term->slug
),
array(
'taxonomy' => 'yourothertaxonomy',
'field' => 'slug',
'terms' => $other_custom_term->slug
)
)
Related Posts:
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Display all posts in a custom post type, grouped by a custom taxonomy
- Retrieving 3 latest post from each of 5 different custom post types
- how to group custom post type posts by custom taxonomy terms
- How to get the parent’s taxonomy?
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- ‘category__and’ for custom taxonomy?
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- wp_query to find posts by year and month
- Custom Post Type Loop within Shortcode
- Filter by custom taxonomy slug on a custom post type
- Display CPT posts based on specific taxonomy
- Query/list all terms and their custom post count
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Custom loop with multiple taxonomy queries
- Show a Category X’s custom post type on Category X archive page?
- What’s the WP way to load remaining custom posts?
- Listing all term items alphabetically / sorting loop
- pagination not working for category.php (custom post types in categories)
- How to display Related Posts based on number of taxonomy terms matched
- How to make WP_Query not to show irrelevant posts?
- Control content before and after custom post type loop
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Pagination not working on custom query on a page
- display posts of custom post type with custom taxonomy
- postsperpage value not being applied
- List all Custom Post Type posts excluding certain Taxnomy term
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Custom Post Type Query W/Category Dropdown
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- What is the most efficient way to execute recursive complex queries?
- Sorting the Loop by Taxonomy Value
- custom post type and a “sticky” position taxonomy
- WordPress custom post type
- Loop with Custom Post Type and Taxonomies
- display news with pictures 3 small and one large (loop)
- Post data in separate divs with incrementing class using WP_Query
- Catergory args causing loop not to show
- How do I correctly query posts from a post ID?
- display custom post type from register taxonomy
- How to exclude certain portfolios from a loop
- Complex Custom Loop with Includes
- tax_query (if the terms are empty)
- Trying to add a class to post links
- Custom Post Type and Taxonomy Loop Output Is Wrong
- Can’t change posts per page in WordPress Post Type Query
- How to count other posts not having specific taxonomy terms?
- Exclude latest post from WP_Query taxonomy term loop
- Display the current post in browser as the first post in a loop (for a slideshow)
- get_terms() parent, child and grandchild
- How to query Posts from a custom post type which contains a custom taxonomy?
- Query Posts that have Custom Taxonomy
- Display post from custom post type
- List all posts in taxonomy term
- Query all post types but limit to parents
- Get posts by category name
- foreach loop inside the loop creating duplicates in output
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Create a custom taxonomy template that loops through child categories in term order?
- How to fetch posts that are stored in the different table than (default) wp_posts?
- WP_Query order custom post type with certain meta key value by post modified date
- Query custom posts from custom taxonomy
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Custom Post type showing up in loop, regular posts are not showing up
- Loop and add Specific Categories and Products Images
- Query Custom Post Type by Taxonomy
- How do i display post from a taxonomy term?
- Display featured posts for a custom post type by taxonomy
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- How do I list a custom field and custom taxonomies for each result in a loop?
- Custom post type pagination error
- Related “custom post type” using “custom taxonomy”
- Custom Post Types Not Showing Up In query_posts Result
- Find Posts based on Child Post value
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Custom Query: Multiple CPTs and a taxonomy filter
- How can I loop at a Specific Taxonomy from a custom post type?
- WP query_posts group by meta field related
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Page that lists publications by classifying them by taxonomy
- custom taxonomy pagination 404 error
- Custom archive page for custom taxonomy and pagination issue
- Ordering by meta value not working
- Custom wp-query display post only today
- posts_per_page in custom WP_Query does not override “Reading” settings?
- How to display list of custom post taxonomy terms and their posts (if any)?
- set object terms after some some time of published post – functions.php
- Sort custom posts by date and then by taxonomy
- Exclude a specific post in a Custom Post Type
- have to do a while have post to show for two custom post types sharing the same taxonomy?
- Custom post type paging return home page
- Pin posts to top of custom loop
- Display post count for a specific month
- display post count in archive page that have relation with another taxonomy term
- Filtering posts based on three taxonomies