Created
May 6, 2014 21:35
-
-
Save barbwiredmedia/84dc699981ba90150bde to your computer and use it in GitHub Desktop.
In the loop: list the terms from the current post http://codex.wordpress.org/Function_Reference/wp_get_object_terms#Examples
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 $item_terms = wp_get_object_terms($post->ID, 'your_taxonomy_name'); | |
if(!empty($item_terms)){ | |
if(!is_wp_error( $item_terms )){ | |
foreach($item_terms as $term){ | |
echo '<h2>'.$term->name.'</h2>'; | |
} | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment