-
-
Save dgoze/489ed894dbf2a0ea5bd6ff7376ee38ef to your computer and use it in GitHub Desktop.
Show post terms with links - get_the_term_list
This file contains hidden or 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