• Skip to main content
  • Skip to primary sidebar

WordPress, Genesis Framework and Storefront customization tutorials

  • Free
  • Premium
  • Membership
    • Login
  • Design
  • Blog
  • About
  • Contact
Home » Display title of current Custom Post Type’s taxonomy

Display title of current Custom Post Type’s taxonomy

2020-05-15 by Gabor Leave a Comment

    $terms = get_the_terms( $post->ID, 'YOUR_TAXONOMY' ); 
    foreach($terms as $term) { 
        echo $term->name; 
        echo $term->slug; 
    } 

Filed Under: Free Tagged With: CPT, Taxonomy

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube
WP Rocket - WordPress Caching Plugin
UpdraftPlus Premium

Disclosure: Some of the links in this site are affiliate links. I will be paid a commission if you use this link to make a purchase.

  • Privacy Policy
  • Terms of Service
  • Flames Design
© 2021 WP Flames - All Right Reserved