I think you could use the has_term
conditional here, like so:
<?php if( !has_term( 'tax1', 'supplier' ) ) { ?>
<a href="https://wordpress.stackexchange.com/questions/245515/<?php echo get_post_meta($post->ID,"ecpt_tds', true); ?>">Download Button</a>
<?php } ?>
Related Posts:
- Mixing custom post type and taxonomy rewrite structures?
- Can multiple custom post types share a custom taxonomy?
- How to Add Custom Fields to a Custom Post Type?
- Display current taxonomy term when inside custom post type
- limit selection of custom taxonomies to one?
- Filtering a custom post type by custom taxonomy in archive template
- get term archive url / link
- Get term slug of current post
- $wp_query->queried_object->ID throws warning: Undefined property
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- Custom Taxonomy Template Post List with Sort Order
- The Operator “NOT IN” Does Not Work In tax_query
- wp_insert_term doesn’t work with custom post type’s taxonomy
- Post type archive page not working
- How to get the parent’s taxonomy?
- Taxonomy posts on Archive page
- Help with hierarchical custom taxonomies and permalinks…almost there
- Archive or taxonomy pages not working for custom post type
- Custom Taxonomy returns no posts
- Display taxonomy term only if there’s a value
- How to get only one category of custom post type?
- Create separate template for shared custom taxonomy with shared terms
- Get URL for specific post type and current tag
- Custom/separate categories for custom post type
- Custom Post Type Pagination & duplicate posts
- Connecting a taxonomy with a post type
- How to achieve representation of streets index with custom taxonomies
- Optimised Code for Pulling Taxonomy Posts
- Custom post types and permalinks
- How to filter custom taxonomy categories on archive?
- Fetch taxonomies by custom post type id array
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- get_terms showing all categories instead of the ones assigned to a specific post
- Normal pages as children of my Custom Post Type
- Custom post type and taxonomy slug issue
- Custom template won’t load for a custom post type (custom permalinks used)
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Genesis filterable portfolio isotope [closed]
- Adding a custom post type taxonomy template in plugin
- Loading custom content type from ajax results?
- Mapping Subdomains in WordPress to give the appearance of a localised site, best approach?
- Get parse_query filter to return slug instead of id
- Custom post type and taxonomy – show related posts
- Add custom image size for custom post type or taxonomy
- Can’t remove front from permalinks for custom taxonomy category page
- Metabox not show in categories custom post type cmb2
- Categorize custom post type
- Custom Permalinks with CPT and Hierarchical Taxonomies
- WP-API select custom taxonomy when creating a post
- How to make custom taxonomy into drop down select in a custom metabox
- List of Posts and Categories
- Invalid argument supplied in register_taxonomy $args->taxonomies
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Custom Post Archive is not working
- How to Set Taxonomy Object Description?
- Getting the taxonomy
- Add term list as class
- Taxonomy archive 404ing (not term archive)
- Variable not working in WP_Query
- Wp Query with multiple custom tag(taxonomy) by get the terms
- Alphabetically sort a taxonomy.php template by post title
- Problems with custom taxonomies
- looping though custom post types and only return results in a given taxonomy
- Show Taxonomies with admin area for custom post type?
- Widget Categories shows “No categories”
- Custom Taxonomy Template file not being used
- get_terms() parent, child and grandchild
- Multi Parameter search with custom post type category and tag
- How to display class name in this shortcode post query
- Taxonomy rewrite pagination 404
- Custom types, taxonomies and query optimization
- Retrieve Custom Taxonomies with Description and Slug
- How to list posts by term (custom taxonomy)
- Query custom posts from custom taxonomy
- Use custom post type taxonomy between cpt slug and name
- How to properly set the rewrite rules for this case?
- Assigning categories to custom post types via a front-end form; only works for native post type
- How to order taxonomy terms by most recent post?
- How to set “section categories”?
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- List all posts associated under custom taxonomy
- Building Link List for Custom Tax
- Custom post type category link + add to menu
- Custom taxonomy template for custom fields loop [closed]
- Best way to have one product in both rental and sale parent category
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Same permalink structure for all post types?
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Status & Taxonomies
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Show Custom Post Type taxonomy term that matches custom field
- How to Display Custom Taxonomies in an Un-ordered HTML List
- link posts to custom post type
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- how do I create a breadcrumb to work with multiple custom taxonomies
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- See the process of creating a taxonomy and tell me where I made a mistake
- Navigation won’t update to show full path to single post
- Advise on Custom Taxonomies and Structure