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
- Get terms by taxonomy AND post_type
- Custom taxonomy not showing up when adding a new custom post type
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Create an archive page for custom taxonomies
- Custom Post Type Archive Template
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Sort the main query in subcategories/terms?
- Rewrite custom post & taxonomy to share same URL path
- Taxonomy-{taxnonomy}.php is not working
- Associate Taxonomies Across Post Types
- How to get the first term for the current taxonomy?
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Show Two custom Post type and their posts on category page
- Have a Custom Post Type index page display taxonomy items instead of posts
- How to get the post type from a category id?
- Show posts from two or more custom taxonomy terms
- How to display custom taxonomies with links in filter menu?
- List custom taxonomy specific to one custom post type
- How to Filter custom post type by taxonomy?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Several post types on WP Query by tag and taxonomy
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Get terms that contain posts that in turn belong to other terms?
- How to get custom posts sub category link
- Query posts with double taxonomy
- Adding predefined terms to a taxonomy
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- Custom query – get_the_terms not work
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Add filter to Admin list for all custom post types by their custom taxonomies
- Custom taxonomy not saving correctly
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- How to automatically create a terms based on each post of a post type
- CPT : Next or Previous term link when has not adjacent post
- Return multiples taxonomies with wp_get_object_terms
- Custom taxonomy terms hierarchical navigation
- What is the best way to structure posts for the same event happening in different years?
- Display Custom Post Type Based on Taxonomy With WP_Query()
- Create custom post type categories
- How to add CSS class field in Custom Taxonomy?
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Categories manage
- How to get post type archive category title
- Changing an item in drop down after 5 latest posts per taxonomy
- Display all Custom taxonomy terms and their relevant custom posts
- WordPress get all post with like in terms [duplicate]
- Decrement term in for each
- Best way to group posts based on custom post type terms
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- List all posts from custom post type by taxonomy
- How to retrieve the permalink for a specific (custom) term?
- Get term_id for each instance of custom taxonomy
- install.php Custom Taxonomy Term not being added to custom post
- Custom My account page and custom page for editing posts
- show only one category posts in admin
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Sort ACF by custom taxonomy