Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $terms = get_the_terms( $post->ID , 'taxonomyname' );
- foreach ( $terms as $term ) {
- $term_link = get_term_link( $term, 'taxonomyname' );
- if( is_wp_error( $term_link ) )
- continue;
- echo '<a href="' . $term_link . '">' . $term->name . '</a>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement