Created
September 4, 2013 19:33
-
-
Save brycejacobson/6441750 to your computer and use it in GitHub Desktop.
Get the custom taxonomy category of a custom post type in WordPress with no link.
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
<li><strong>Category:</strong> <?php $terms_as_text = get_the_term_list( $post->ID,'gallery_category', '', ', '); | |
if (!empty($terms_as_text)) echo '', strip_tags($terms_as_text) ,''; ?></li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment