WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

(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
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.