Created
September 2, 2014 19:33
-
-
Save JiveDig/481d0535c462ab8e2dfe to your computer and use it in GitHub Desktop.
Show post terms with links - get_the_term_list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$language = wp_get_post_terms($post->ID, 'ft_language'); | |
if( $language ) { | |
echo get_the_term_list( $post->ID, 'ft_language', '<li><span class="detail">Languages:</span>', ', ', '</li>' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment