At a glance, I would guess that the problem is your use of
'relation' => 'AND'
Using AND
means that you will only return items that fall into all of the taxonomy terms. If you want to return items have any of the taxonomy items, change it to
'relation' => 'OR'
If that “doesn’t work”, please provide more details about what “it doesn’t work” means 🙂
Related Posts:
- How to Filter custom post type by taxonomy?
- How do I display the grand child items of a taxonomy term?
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- tax_query not working?
- How to show post which has the specific taxonomy terms?
- WordPress Doesn’t Generate Taxonomy Archive
- Suggested Post and Taxonomy structure
- Custom post with more than one custom taxonomy
- Get the taxonomy of a post hierarchically
- Adding custom taxonomy in same menu place with two custom post types
- How to make custom taxonomy into drop down select in a custom metabox
- How to get list of taxonomy slugs ordered parents>childs?
- How do I share categories across multiple post types?
- Multiple tag cloud filtering
- Get url.com/post_type/taxonomy/term work!
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- How to display Related Posts based on number of taxonomy terms matched
- Different Category system needed for the Custom Post Type
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- tax_query not working in template
- How to Set Taxonomy Object Description?
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Rename a slug label
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- Custom taxonomy (categories) on custom post type return no results
- Variable not working in WP_Query
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- WP_Query parameter conflict
- How can I create an automatic drop down menu with my tags?
- How to define a term for custom taxonomy
- List custom taxonomy as navigation – taxonomy pages with all it’s posts?
- Alphabetically sort a taxonomy.php template by post title
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Show Taxonomies with admin area for custom post type?
- Custom taxonomy template list not working (404)
- Use the custom post type archive for taxonomies?
- Rewrite custom post type with taxonomy
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- WordPress multisite – is it possible to have different taxonomies for each site?
- My custom taxonomy is only displaying 1 of 3 terms
- Query custom post types & Taxonomies and list them in a table on a page
- Taxonomy template page not working
- tax_query (if the terms are empty)
- How to show list of taxonomy terms associated with specific post?
- Changing CPT slug and taxonomy already registered in parent theme
- Creating custom post type posts and associating them with a post from another custom post type
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Custom Taxonomy Terms in Menu lead to which page?
- Getting List of child terms from custom taxonomy parent
- Running a custom query inside another cpt single and trying to grab a variable
- Get posts by category name
- Custom taxonomy query showing more than 4 posts
- Using page title as a link to term archive
- Custom Post taxonomy template
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Query Custom Post Type by Taxonomy
- Query all posts under one taxonomy? Why is my code not working?
- How to get post count of specific taxonomy that have store name & category
- Duplicate slug/permalink issue while adding same post name
- Get the taxonomy value in the post loop inside the archive page
- Filter taxonomy by CPT
- How to show related posts of category on post within custom posttype
- Display related CPT with custom taxonomy
- custom post type and a “sticky” position taxonomy
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Define multiple prefixes for custom post type
- How to search through all child taxonomies using WP_Query?
- How to order taxonomy terms by most recent post?
- Custom taxonomy returns 404 even with saving permalinks
- Create custom post type categories
- How to add CSS class field in Custom Taxonomy?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Taxonomies are not showing in the category dropdown
- Change custom post taxonomy values from front-end
- Display 3 level taxonomies
- Set a Default CPT taxonomy by taxonomy id
- Get all posts for custom taxonomy term
- List posts that have the current url taxonomy
- Listing all custom posts having a specific taxonomy whatever the terms
- List all posts associated under custom taxonomy
- Custom search for a custom post type in WordPress
- How to transfer categories (default) to custom taxonomy?
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- How to manage a dynamic multi-level page hierearchy system?
- Custom Taxonomy – fields
- Display custom tax in “while” loop
- How can I get the last 5 element of this tax query?
- Categories manage
- Add other all taxonomies as meta boxes to custom post type