Skip to content

Instantly share code, notes, and snippets.

@stellarcowboy
Created June 11, 2012 14:52
Show Gist options
  • Save stellarcowboy/2910452 to your computer and use it in GitHub Desktop.
Save stellarcowboy/2910452 to your computer and use it in GitHub Desktop.
Display The Name Of The Custom Taxonomy For The Current Post - WordPress
$value = get_query_var($wp_query->query_vars['taxonomy']);
echo get_term_by('slug',$value,$wp_query->query_vars['taxonomy']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment