daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                 ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top