Created
March 20, 2013 08:46
-
-
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
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
//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