Getting custom taxonomy from custom post type

You mean get_the_terms()?

<?php 
    $terms = get_the_terms( $post->ID, 'block_type' ); 
    foreach($terms as $term) {
      echo $term->name;
    }
?>

Or have I simplified this too much?

Leave a Comment