Created
December 22, 2018 05:49
-
-
Save thetwopct/30063be5ef752c47a33b58a972ebcb90 to your computer and use it in GitHub Desktop.
Show taxonomy of a post if it exists
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 | |
if( false != get_the_term_list( $post->ID, 'brands' ) ) { | |
echo 'Brand: ' . get_the_term_list($post->ID,'brands', ' ', ' ', '' ) . "<br />"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment