Skip to content

Instantly share code, notes, and snippets.

@brycejacobson
Created September 4, 2013 19:33
Show Gist options
  • Save brycejacobson/6441750 to your computer and use it in GitHub Desktop.
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.
<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