Home › Forums › Back End › Display custom taxonomy (like “the_category”) for custom post type › Reply To: Display custom taxonomy (like “the_category”) for custom post type
November 22, 2013 at 4:24 am
#156888
Duncan
Participant
I have played about with the code some more as I needed to display only one custom taxonomy that was a link.
However I am unable to get the link to work – anyone have any ideas on this?
See here:
<?php $terms = get_the_terms( $post->ID , 'yourcustomtaxonomyhere' );
foreach ( $terms as $term ) {
echo '<a href="' . $term_link . '">' . $term->name . '</a>';
}
?>