I think you are using the tax query in wrong way. Please use 'tax_query' => array( array( 'taxonomy' => '$term->taxonomy', 'field' => 'slug', 'terms' => '$term->slug' ) ),
instead of 'taxonomy' => $term->taxonomy, 'term' => $term->slug,
It will work fine.
Related Posts:
- Display Custom Taxonomy Alphabetically
- Listing all term items alphabetically / sorting loop
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Display title of all custom posts from same taxonomy term on a custom post template
- Add active class to foundation 6 tabs while looping categories
- How to show terms used only for particular custom post type. Filter creation perpose
- Display all posts in a custom post type, grouped by a custom taxonomy
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- Retrieve single term slug
- Not Able to Insert Taxonomy Term Using wp_insert_post()
- array_pop() expects array, boolean given for $event_type_term ->slug
- How can I add programmatically custom taxonomy terms to a custom type post when saving posts?
- post count is wrong when using same taxonomy for 2 different CPT
- Glossary with Custom Post Type
- Displaying custom post type by first letter through custom taxonomy
- Separate Custom Post Type Taxonomy by Comma
- Conditional two level dropdown filter for custom post type
- Show all custom post type posts sorted by custom taxonomy then by another custom taxonomy
- Trouble adding custom featured image for custom taxonomy TERMS
- Get child terms of current term of the current post
- Get the terms of a custom taxonomy for a specific author in author template
- Output the content of a term organised by each of the CPT?
- How to get posts from multiple custom post types according to it’s custom taxonomy terms?
- wp_query to find posts by year and month
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to check the terms in single custom post type template
- get_template_part for each level of taxonomy term
- Filter by custom taxonomy slug on a custom post type
- Displaying a custom post types custom taxonomy value?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Update post terms with custom taxonomy
- How do I display tags for a custom post type single page?
- Am unable to reset a query properly
- Get template part using a custom taxonomy term
- How to restrict users and admin from creating new taxonomy terms?
- Get next and previous 3 posts in a term in single post page
- using $wpdb to get custom post type with term
- Allow user to set custom order to a list of custom taxonomies?
- Displaying custom taxonomy in the admin list of a custom post type
- Which post does a taxonomy term belongs to?
- Display all taxonomy terms, add class if term applies to current post
- Return the latest post from a custom Taxonomy and Post Type
- How do I display the taxonomy term alongside the post type post title?
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Display related custom taxonomy posts in sidebar
- Targeting custom post type
- Get parent category id from child category page for custom taxonomy
- How to get only child terms from a custom taxonomy of current post type?
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- looping though custom post types and only return results in a given taxonomy
- Dynamically insert code to custom post type loop
- Get terms of a post but only if they’re also the child of a specific term
- Get taxonomy term by slug in post on archive page
- Pull in taxonomy field of custom post type in new query
- How to display custom taxonomy term meta on custom post type
- get_terms() parent, child and grandchild
- does wp_insert_term link the term to a certain post ID?
- Grab all Custom Posts by multiple taxonomies and terms
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Create a custom taxonomy template that loops through child categories in term order?
- Retrieve Custom Taxonomies with Description and Slug
- How to list posts by term (custom taxonomy)
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- How to display custom taxonomy term specific post?
- How to list posts by terms
- How to order taxonomy terms by most recent post?
- How to associate custom taxonomy terms with custom post type?
- get_queried_object not work in taxonomy page
- get_the_terms child terms for current post/custom post only
- Combine multiple separate lists into one
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Pages of my taxonomy terms are showing all posts
- wordpress does not see the correct custom taxonomy hierarchy
- Get category list & taxonomy list from different post type using post id?
- How to get all posts related to a taxonomy?
- Custom taxonomy- only output relevant terms
- Custom post types not displaying per category
- Looping through custom taxonomy in one template
- WordPress add taxonomies/terms list as a menu in archive page
- Hide Custom Taxonomy title if not associated with another Custom Taxomony
- How to pass taxonomy terms to WP_Query along with $args?
- Custom Post Status & Taxonomies
- Prevent repetitive terms in get_the_term_list
- Order by custom field attribute
- Display Custom Taxonomy of custom post type
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- Display associated taxonomy child name on single CPT page
- How to manage a bookstore
- Get all terms assigned to a post from different taxonomies
- How to use wp_set_object_terms depending on page ID?
- Create a WordPress loop that shows posts from a custom post type + filters the posts by taxonomies while hiding empty taxonomies
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template