Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

(Moderator's note: post was originally entitled "Taxonomy.php title")

How can I display the "Posts classified under:" title for the taxonomy.php page? For example, this code is used in tag.php:

printf( __( 'Tag Archives: %s', 'twentyten' ), 
   '<span>' . single_tag_title( '', false ) . '</span>' );
share|improve this question

1 Answer 1

up vote 6 down vote accepted


$tax = $wp_query->get_queried_object();
printf( __( 'Posts classified under: %s', 'textdomain' ), '<span>' . $tax->name . '</span>' );
share|improve this answer
Beat me to it. :) I can only add that WP 3.1 will have this simplified with new single_term_title() function. – Rarst Oct 9 '10 at 20:52
thanks for the info ;) – sorich87 Oct 9 '10 at 21:08
perfect! thanks – moettinger Oct 9 '10 at 21:09
you are welcome! – sorich87 Oct 9 '10 at 21:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.