WordPress Get Current Category from Taxonomy

<?php $terms = wp_get_post_terms( $post->ID, 'PLACE-HERE-YOUR-TAXONOMY'); foreach ( $terms as $term ) { $term_link = get_term_link( $term ); echo '<a href="' . $term_link . '">' . $term->name . '</a>' . ' '; } ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.