Skip to content

Instantly share code, notes, and snippets.

@spencejs
Created March 23, 2013 05:46
Show Gist options
  • Save spencejs/5226617 to your computer and use it in GitHub Desktop.
Save spencejs/5226617 to your computer and use it in GitHub Desktop.
Echo Queried Taxonomy Name
<?php
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment