Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created March 20, 2013 08:46
Show Gist options
  • Save jasperf/5203215 to your computer and use it in GitHub Desktop.
Save jasperf/5203215 to your computer and use it in GitHub Desktop.
Custom Post Type Custom Taxonomy Title: This code loads the title of the current CPT category or the taxonomy page title. Source of the snippet is mentioned in code below
//http://wordpress.org/support/topic/taxonomy-title-output?replies=7 slambert
<?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