Home › Forums › Back End › Display custom taxonomy (like “the_category”) for custom post type › Re: Display custom taxonomy (like “the_category”) for custom post type
November 29, 2011 at 10:27 am
#91497
Brightonmike
Member
I use the following to display a term without a link. Not sure how to limit but should be easy enough.
AFAIK, this is the correct code to use. Yours looks kinda bloated.
$terms = get_the_terms( $post->ID , 'taxonomyname' );
foreach ( $terms as $term ) {
echo $term->name;
}
?>