For the record I found an answer to this question in the end – I needed to use a meta query rather than a taxonomy query. The correct code ended up being this:
$relatedBlogPostArgs = array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 1,
'order' => 'DESC',
'orderby' => 'date',
'meta_query' => array(
array(
'key' => 'brand_post_link',
'value' => $brandData->term_id
)
)
);
$relatedBlogPosts = new WP_Query($relatedBlogPostArgs);
Related Posts:
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- Fill New Taxonomies
- How to add images to taxonomies?
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- Combine multiple custom user taxonomy in single url
- Advanced Tax Query
- How to display custom taxonomy in multiple columns?
- Custom taxonomies making WP very slow – Way to fix?
- Sorting taxonomy columns by meta value numeric
- Programatically added attribute, set to ‘show on product page’ automatically. Woocommerce [closed]
- Get Taxonmy Term ID For Current Post
- Changing stylesheet depending on custom taxonomy terms
- How do I taxonomy terms based on terms they are used alongside?
- Custom taxonomy [year] is directing to yearly archive
- Taxonomies on custom taxonomies
- Hide product categories and taxonomy terms in menu if empty
- woocommerce custom product category template
- Getting associated taxonomies
- How to add images to taxonomy terms? [duplicate]
- one post per term taxonomy
- Query custom taxonomy for category including children
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Tracking the name of a custom taxonomy
- Add terms to a taxonomy archive from within the same taxonomy
- Custom Taxonomies Archive Page 404
- Cloning product not copying custom taxonomies
- WordPress Taxonomy Menu
- Display woocommerce product_cat child terms with thumbnails
- wp_get_object_terms count on taxonomies within an category archive
- Make custom post type display with custom taxonomy in url
- Querying posts globally based on custom taxonomy with its own taxonomymeta table
- How do I check if a post has a term with a particular ancestor/parent?
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- Can you add the visual editor to the description field for custom taxonomies?
- Custom Taxonomy and Tax_Query
- Custom taxonomy hide meta box but show in menu
- display posts with same taxonomy term
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- Remove Category description textarea
- Archive template for taxonomy terms
- How can I set up a category “overview” page?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Set download limit and expiry for WooCommerce downloadable products in specific categories
- How to prevent posts duplicating when viewing a custom taxonomy term
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Is it possible to create exclusive custom taxonomy?
- ACF vs Taxonomies
- Reverse traversing taxonomy based on term_id
- Get Current Custom Taxonomy ID by Post ID
- I used the Tax-meta-class by bainternet but i still can’t get it to display any of the results.
- Rewrite Rule Working for all but one of the taxonomies created
- How to join result of different taxonomies?
- How to add Post Format Taxonomy Archive page in the menu?
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Replace taxonomy permalinks
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- Multi-select field for Taxonomy can’t save the value
- Create custom taxonomy and Display in metabox dropdown
- How to create a custom taxonomy using a shortcode?
- Override Taxonomy Template
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Filter through custom taxonomy with an array of taxonomy IDs
- Add attribute taxonomy through code don’t appear in admin product page
- Custom arguments in WP_Query
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Dropdown taxonomy lists in admin menu
- Taxonomy Overview Page?
- Order taxonomy terms wordpress
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Unable to get the Parent Custom Taxonomy Terms
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Taxonomies on Pages with Custom Formatting
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Showing custom taxonomy in woocommerce signle product page
- Is it possible to filter a taxonomy archive by other taxonomies that are on posts?
- How do I get the correct URL?
- How to replace custom post type with custom taxonmy in permalinks
- Get WooCommerce product category list in functions.php
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- Showing taxonomies with terms that are attached to custom post
- Make relation of custom taxomies
- Sort Taxonomy List by Custom Values
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- Display taxonomy term slugs
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- Advanced AND tax_query in sidebar with 2 taxonomies
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- Get custom taxonomy term url on archive page
- Adding new terms to custom taxonomy
- List posts grouped by children of a custom taxonomy
- How do I create a term for every value of a post meta?