I have realised the problem isn’t with the code I have posted and the issue is when the taxonomies are being created.
Basically the reason this wasn’t working is because the query_var parameter was set to false when registering the taxonomy. I changed this to true and my filtering started working.
Related Posts:
- Get Posts by Custom Post Type ,Taxonomy, and Term
- How to limit the number of terms (terms acts like categories)
- How do I list custom taxonomy terms without the links?
- wp_insert_term doesn’t work with custom post type’s taxonomy
- Retrieve single term slug
- Display taxonomy term only if there’s a value
- Get list of terms of current taxonomy archive for another taxonomy
- Get all taxonomies for all post types
- How to filter the taxonomy terms based on another taxonomy term
- How to check the terms in single custom post type template
- Which post does a taxonomy term belongs to?
- Get related posts of child term of custom post type
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- How do I display the taxonomy for a custom post type in an array
- Variable not working in WP_Query
- How to Display Posts From Category Within a Custom Taxonomy?
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Custom Taxonomy Terms in Menu lead to which page?
- Define multiple prefixes for custom post type
- How to order taxonomy terms by most recent post?
- Get all posts for custom taxonomy term
- How to manage a dynamic multi-level page hierearchy system?
- Pages of my taxonomy terms are showing all posts
- Display title of all custom posts from same taxonomy term on a custom post template
- How to get all posts related to a taxonomy?
- Filter Term By Parent Term – Custom Post Type
- WordPress add taxonomies/terms list as a menu in archive page
- Custom Post Status & Taxonomies
- get_the_term_list() wanting to loop through the returned values
- List custom taxonomy terms
- Display associated taxonomy child name on single CPT page
- Issue On Listing Woocommerce Parent Tag List
- Taxonomy Archive URL + Template
- How to list custom taxonomy terms without the hyperlinks?
- How do I get array of types associated with a taxonomy?
- get_post_meta returns empty array for terms
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- Update post terms with custom taxonomy
- How do I display tags for a custom post type single page?
- Custom Post Type Archive Page Filtering
- Filtering WP_Query Dynamically on the Front-End
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Get template part using a custom taxonomy term
- Get posts by querying taxonomy and certain terms of the taxonomy?
- How to restrict users and admin from creating new taxonomy terms?
- Custom Taxonomies not appearing in Admin
- Missing Posts in Custom Taxonomy List
- using $wpdb to get custom post type with term
- Custom Post Type Taxonomy Filters
- Show posts from two or more custom taxonomy terms
- Allow user to set custom order to a list of custom taxonomies?
- How do I do this with WordPress? Taxonomies?
- Disable block with taxonomies at post page
- Displaying custom taxonomy in the admin list of a custom post type
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- List custom taxonomy specific to one custom post type
- Custom Taxonomy back-end customizations
- Taxonomy custom post type URL
- Display post as term id
- How to Filter custom post type by taxonomy?
- Is it possible to have dedicated page for parent/child taxonomy?
- How do I display the taxonomy term alongside the post type post title?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Custom post taxonomies as tax_query terms?
- Limit amount of posts made within a custom taxonomy
- Post count by month of taxonmy term
- list taxonomies from a custom post type
- Display a grid of taxonomy terms at root taxonomy page
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- limit value taxonomy based on previous taxonomy value wordpress
- Several post types on WP Query by tag and taxonomy
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How do I display the grand child items of a taxonomy term?
- Taxonomies relations
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Display Custom Taxonomy Alphabetically
- Full Custom Post Type List Organised by two Taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- Suggested Post and Taxonomy structure
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Get terms that contain posts that in turn belong to other terms?
- Custom post with more than one custom taxonomy
- How to get custom posts sub category link
- Custom while loop for hierarchical display of a taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- 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
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Display taxonomy terms, child terms and posts in a template
- How to get list of taxonomy slugs ordered parents>childs?
- Use custom walker to add taxonomy terms to main nav menu
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How do I share categories across multiple post types?
- Add term to custom post type on draft