Display A Custom Taxonomy name in wordpress 3.6

This display the custom taxonomy name in WordPress 3.6 and higher. Useful for use in your archives or category pages.

// Let's find out if we have taxonomy information to display
// Something to build our output in

$taxo_name = ''.n;  

// Variables to store each of our possible taxonomy lists
// This one checks for a Product Category classification

$prodcat_list = get_the_term_list( $post->ID, 'CUSTOM TAXONOMY NAME', '', ', ', '' );

// Add Product Category list if this post was so tagged

if ( '' != $prodcat_list )

$taxo_name .= $prodcat_list;

echo $taxo_name; 

Leave a Reply