Last active
September 25, 2015 15:23
-
-
Save jpcontrerasv/f21601161dc4a1172bcf to your computer and use it in GitHub Desktop.
WP > Term Name
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
$terms = get_the_terms( $post->ID , 'categorias' ); | |
if($terms) { | |
foreach( $terms as $term ) { | |
echo $terminowp = $term->name; | |
} | |
} | |
$terms = get_the_terms( $post->ID , 'etiquetas' ); | |
foreach ( $terms as $term ) { | |
$term_link = get_term_link( $term, 'etiquetas' ); | |
echo "<a href='".$term_link."'>" . $term->name . "</a> "; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment