The proper argument to your tax query is terms, not term. You can see this in one of the examples in the Codex:
$args = array(
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'people',
'field' => 'slug',
'terms' => 'bob',
),
),
);
$query = new WP_Query( $args );
https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
Assuming that your post types, and taxonomies are what they appear to be, and the slugs are correct, with that change your code should work.
Related Posts:
- The next_posts_link() works only with original $wp_query
- Adding additional data to WP_Post object
- WP_Query: Why is sticky post not first item in loop?
- Query *only* sticky posts
- Skipping first 3 posts in wp query
- Accessing the post content with WP_Query
- Most viewed post for the last 2 days using WP_Query
- Adding Post Counts to Menu (Nav) Programmatically?
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Get only modified posts
- How to output comments number of a post per day?
- Should ‘setup_postdata()’ be reset with ‘wp_reset_postdata()’?
- If specific user role then sticky post
- Hide Post comments when displayed via WP_Query
- Display posts with comments closed, with pagination?
- posts_per_page doesnt work
- wp query with dynamic taxonomies and terms?
- Blogroll – Different layout for first post
- I want to query posts in monthly basis
- How do I use `posts_distinct` correctly?
- Automatic value for custom fields for posts
- Loop through all product posts?
- Custom WP_QUERY $args
- Improving WP_Query for performance when random posts are ordered
- Why won’t my taxonomy query show up?
- How to find what index page a post is on?
- Limiting the number of posts in WP_Query leads to unexpected result
- Get Posts that are in the current month or later
- WP Query to Get Array of Slugs
- WP_Query with ajax handler returns the same posts
- Why WP_Query(‘showposts=5’) shows only 1 post?
- How can I sort posts by the date and a custom meta field?
- Hiding Draft Post In Admin
- How to insert 2 args into 1 Wp_Query for a slideshow
- How to verify wp user password by sql query in wp? [closed]
- WP Query – Posts Per Page not working in combination with category__in
- How to do set post permalinks using 6 digit random unique function?
- Lost draft under all posts and drafts
- Get user categories with most posts in it
- Query Posts by Custom Field
- how can i change WP main archives loop to sort by name or title
- Using wp_list_pages() after calling query_posts()
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- Show post content and title in diferent divs using WP_Query using a loop
- Loop doesn’t exclude the specified category in home page
- why the same code got different results when using query_posts in functions.php and index.php
- Query posts by Author and/or by Tag
- How to get posts published on the latest date?
- Page and post loop same template
- Show metabox value last post excerpt, title and link
- How do I insert a after every 5 posts in a WordPress Loop that infinitely loads posts?
- WP_Query: Show 10 posts in date order, first three random
- Exclude some posts from displaying in wp_query based on some condition
- WordPress Loop: How to display recent posts in multiple divs
- Random posts that always include a particular post?
- Related Posts function not working
- Conflict array_splice on loop and query in widget
- WP_Query of Category Not Showing First Post
- Sidebar limiting to 10 posts?
- Change content off every sixth element
- WP_Query get posts in custom database table [duplicate]
- WP query taxonomy optimization
- WordPress Query – Display 5 posts (same post type), each from a given tag
- While loop in functions.php outputting the_title() of each post on frontpage
- Show posts from two specific category in WP_Query
- Change Old WordPress Post Date Year
- How to create loop of posts except post ID defined via ACF field
- Displaying all posts from other sites on the network on one site
- Multisite how to display merged posts from two sites and sort by latest date?
- Query prints posts without specific categories
- a WordPress connected to 2 database
- Using a meta_value or postdate to to query and orderby
- Exclude posts in home slider from sections
- WP_Query that targets all categories
- Fill the exclude array() in get_posts()
- Double loop output
- Ajaxify Post Sort
- Get current user, change users post status to published
- Displaying a specific sub-category’s posts from wp_query
- Custom layout manager for posts
- Display WordPress Post By Date
- GUID to related post not in current language
- Get results from the main wp_query
- How can I display a specific number of post in a category via a url
- Advanced Post Display/Pagination/Ordering
- Pagination for custom query won’t let me back on page 1
- Make assigning post to a specific category equivalent to assigning it to all categories
- WP_Query retrieve custom posts but not the post showing
- WP_Query based on a custom field result
- How to get single post by one author?
- List posts related to category on a div [closed]
- WP_query sort by custom meta_key “price”
- Wp_query WooCommerce products
- posts_per_page – Repeats only first posts ‘post__in’ array
- query_posts different amount of posts per page [duplicate]
- Add custom PHP (no-SQL) filter to WP_query
- How do I get content of custom post type through post ID
- Filters do not work when there are multiple (one works)
- date_query returning only the most recent post instead of the post published before today
- How to make WP_Query faster when getting a post from one year ago?