Call Taxonomy anywhere on a template (without link)


/ Published in: PHP
Save to your folder(s)

Call Taxonomy anywhere on a template (without link)


Copy this code and paste it in your HTML
  1. <?php $terms_as_text = get_the_term_list( $post->ID,'people', 'People: ', ', '); if (!empty($terms_as_text)) echo '<p>', strip_tags($terms_as_text) ,'</p>'; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.