Created
June 9, 2014 19:29
-
-
Save walterjaworski/db8075608bbed22d06f6 to your computer and use it in GitHub Desktop.
Puxando as taxonomias de um custom post type
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 | |
/* | |
* "tipos", "pragas" e "culturas" são taxonomias vinculadas ao custom post type | |
* http://codex.wordpress.org/Function_Reference/get_the_term_list | |
*/ | |
echo '<h2>Tipo</h2>'; | |
echo get_the_term_list( $post->ID, 'tipos', '', ', ', '' ); | |
echo '<h2>Para controle de</h2>'; | |
echo get_the_term_list( $post->ID, 'pragas', '', ', ', '' ); | |
echo '<h2>Utilizado em</h2>'; | |
echo get_the_term_list( $post->ID, 'culturas', '', ', ', '' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment