If I understand you correctly, then has_term
should be solution for your problem…
if ( has_term( 'past-events', 'event_type' ) ) {
// do something
}
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
- Get list of terms of current taxonomy archive for another taxonomy
- Get all taxonomies for all post types
- How do I display tags for a custom post type single page?
- 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
- Custom Taxonomy Terms in Menu lead to which page?
- How to order taxonomy terms by most recent post?
- get_the_terms child terms for current post/custom post only
- Get all posts for custom taxonomy term
- Pages of my taxonomy terms are showing all posts
- Filter Term By Parent Term – Custom Post Type
- Filter By Term Not Working – Custom Post Type
- WordPress add taxonomies/terms list as a menu in archive page
- 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 The Post Type A Taxonomy Is Attached To
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to completely disable a taxonomy archive on the frontend?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- Not Able to Insert Taxonomy Term Using wp_insert_post()
- array_pop() expects array, boolean given for $event_type_term ->slug
- How to get a list of term names of the custom post type im currently on in single.php
- How to show term-specific post list, without posts associated with child terms?
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Custom post type taxonomy template
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Taxonomy Templates
- Category page only displaying the posts from a custom type
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- How to get posts from multiple custom post types according to it’s custom taxonomy terms?
- How can I move a custom taxonomy and its data from one post type to another?
- Displaying a custom post types custom taxonomy value?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Update post terms with custom taxonomy
- Get template part using a custom taxonomy term
- How to restrict users and admin from creating new taxonomy terms?
- Custom Taxonomies not appearing in Admin
- using $wpdb to get custom post type with term
- Custom Post Type Taxonomy Filters
- Allow user to set custom order to a list of custom taxonomies?
- Displaying custom taxonomy in the admin list of a custom post type
- Which post does a taxonomy term belongs to?
- How do I display the taxonomy term alongside the post type post title?
- Custom post taxonomies as tax_query terms?
- Get related posts of child term of custom post type
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- WordPress Doesn’t Generate Taxonomy Archive
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Custom post with more than one custom taxonomy
- Get the taxonomy of a post hierarchically
- How to get list of taxonomy slugs ordered parents>childs?
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Different Category system needed for the Custom Post Type
- single-{post_type}.php not working
- Rename a slug label
- How to Display Posts From Category Within a Custom Taxonomy?
- How to define a term for custom taxonomy
- List custom taxonomy as navigation – taxonomy pages with all it’s posts?
- The Difference Between Categories and Tags and Taxonomies and Terms
- WordPress multisite – is it possible to have different taxonomies for each site?
- Query custom post types & Taxonomies and list them in a table on a page
- How to show list of taxonomy terms associated with specific post?
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Creating custom post type posts and associating them with a post from another custom post type
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Commas not displaying in implode
- Getting List of child terms from custom taxonomy parent
- How can I get 3 different taxonomy type terms in a div class element?
- Get terms for a specfic post from multiple taxonomies in custom post type
- How to get post count of specific taxonomy that have store name & category
- Duplicate slug/permalink issue while adding same post name
- Filter taxonomy by CPT
- display post count in archive page that have relation with another taxonomy term
- get taxonomies from terms
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- posts_per_page is not working by term
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- tax_query not working?
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Taxonomy’s title
- Display all posts from single taxonomy term
- Connect 8 Taxonomies to One (Main) taxonomy. How to?
- Get posts of an specific term of a custom taxonomy
- How to display category wise posts on seprarate template
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- How to List CPTs Under One Tax Term
- Custom post type post taxonomies
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Show custom category archive as front page and remove taxonomy slug from urls