This question is not very detailed but I think you are talking about hiding parts of the markup for a post. If that is the case then has_term
should be what you want.
if (!has_term('Hback','tax-slug')) {
// markup that does not show for 'Hback'
}
‘tax-slug’ is the taxonomy– a WordPress core taxonony like ‘post_tag’ a custom taxonomy that you or a plugin has created. You need to provide a third parameter containing the post ID or the post object if you are not meaning to check for the current post in a loop.
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Show Custom Taxonomy Inside Custom Menu
- Why does my custom taxonomy show a total count across all post types
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- Why does a custom post type need the ”hierarchical’ args setting?
- Permalink rewrite with custom post type and custom taxonomy
- Custom Post Type with Nested Taxonomy and Template Files
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- Custom Post Types – Titles as Taxonomies
- Query for posts in 2 taxonomies
- Using pre_get_posts to Filter Posts
- Custom post types – show specific posts
- Query for custom post type objects in a taxonomy and with a meta value
- Get post type from taxonomy or category page
- get_categories() for only CPT
- custom taxonomy archive by year
- Add nonexisting pages to navigation
- Custom Post Custom Taxonomy Data Not Saving in Edit Screen
- Can custom taxonomies items have attached properties?
- Associate custom post types with normal posts
- WP 3.0.5 – Custom posts matching 2 taxonomies
- Custom Post Type Loop within Shortcode
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- Custom Post Type – Display Categories & Tags In Dashboard list
- How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
- Display CPT posts based on specific taxonomy
- Custom Taxonomy URL are redirecting to page with the same name
- Filtering WP_Query Dynamically on the Front-End
- Hierarchical Custom Post Types in Array
- Making certain categories of CPT not publicly queryable
- Query with no terms uses index.php template instead of archive.php
- custom taxonamy and post type
- Taxonomy custom post type URL
- custom-taxonomy/post_name instead of the default post_type/post_name
- Getting categories of posts under a custom taxonomy
- Custom taxonomies relationship
- How do I display the taxonomy for a custom post type in an array
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Add term to custom post type on draft
- Multiple tag cloud filtering
- Best way to organize book-page structure
- Get url.com/post_type/taxonomy/term work!
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Three Most Recent Posts, One Per Term
- Show all tags on custom post type
- Get parent category id from child category page for custom taxonomy
- Trying to get custom post of a custom taxonomy
- How can I create an automatic drop down menu with my tags?
- sort CPT on Custom Taxonomy Archive page
- REST filters only firing when I have a param set
- SEO Concerns With Rewrite Rules
- Empty taxonomy items for CPT in admin grid
- WordPress custom post type and taxonomies
- Display Custom Post Types Glossary
- How to fetch custom post types with its full data on wordpress?
- Taxonomies exists – but not showing up
- Custom post not appearing under custom taxonomy category
- Multiple permalinks for a single post with multiple taxonomies
- rewrite rules hierarchical
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- How to show custom posts
- How do I set a post slug automatically based on taxonomy?
- Get a list of custom post type (property) when clicked on custom taxonomy 1 (rent or sale) from custom taxonomy 2 (city) page
- How to divide Subcategories into pages of parent category wordpress
- update custom taxonomy custom fields
- Filter taxonomy by CPT
- Display Posts that fit a certain criteria on Category pages
- How do I find out which (page) template file my custom child post is looking for?
- How to display “META” array in register_taxonomy
- If ACF Post Object post has custom taxonomy term…
- Custom Post Taxonomy Template Not Loading Properly
- Customise Permalink Structure For Custom Post Types
- How to filter taxonomy of a custom post type and display it in the single post type page in the back end?
- Parent and child categories with their id in drop_down in CPT
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Custom Taxonomy not working front side Woocommerce
- Custom post type post_type_link gives “page not found” on any other custom post type
- Exclude Posts in a Given Category
- Taxonomy’s title
- Display all posts from single taxonomy term
- Front page url permalink
- Best way to use Category & Custom Fields?
- Plugin Error on activating
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type post taxonomies
- If taxonomy show class of active
- Custom Taxonomy Showing in WP Menu
- Storing/querying custom date data
- Custom Template Taxonomy
- Custom Post Type Permalinks Problem
- How to relate one custom post type to another custom post type
- Issue On Listing Woocommerce Parent Tag List
- How is it possible to list custom post types by “category” like with simple posts?
- Links in archive not including taxonomy parameter
- the_post_navigation in single page with multiple taxonomies
- Url rewrite with custom post type and taxonomy
- Custom Sort Order for Custom Post Type Taxonomy