Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php $terms = get_the_terms( $post->ID , 'taxonomyname' );
  2. foreach ( $terms as $term ) {
  3. $term_link = get_term_link( $term, 'taxonomyname' );
  4. if( is_wp_error( $term_link ) )
  5. continue;
  6. echo '<a href="' . $term_link . '">' . $term->name . '</a>';
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement