Hello,
Whilst doing final tests for my new site, I found that on tag archive pages the title is "Tag Archives:" followed by blank. It does not display the title of the tag. Here is an example: http://blog.peaceandtruth.com/tag/travel/
I found the relevant section in my functions.php file. I haven't done anything to this particular section, as you can see. Why does $content .= __(thematic_tag_query());
give me nothing?
(Archives by date are working: http://blog.peaceandtruth.com/2011/03/)
// Filter the page title
// located in archive.php, attachement.php, author.php, category.php, search.php, tag.php
function childtheme_override_page_title() {
global $post;
$content = '';
if (is_attachment()) {
$content .= '<h2 class="page-title"><a href="';
$content .= apply_filters('the_permalink',get_permalink($post->post_parent));
$content .= '" rev="attachment"><span class="meta-nav">« </span>';
$content .= get_the_title($post->post_parent);
$content .= '</a></h2>';
} elseif (is_author()) {
$content .= '<h1 class="page-title author">';
$author = get_the_author_meta( 'display_name' );
$content .= __('Author Archives: ', 'thematic');
$content .= '<span>';
$content .= $author;
$content .= '</span></h1>';
} elseif (is_category()) {
$content .= '<h1 class="page-title">thought stream:';
$content .= ' <span class="thought-stream">';
$content .= single_cat_title('', FALSE);
$content .= '</span></h1>' . "\n";
$content .= '<div class="post"><div class="archive-meta">';
if ( !(''== category_description()) ) : $content .= apply_filters('archive_meta', category_description()); endif;
$content .= '</div></div>';
} elseif (is_search()) {
$content .= '<h1 class="page-title">';
$content .= __('Search Results for:', 'thematic');
$content .= ' <span id="search-terms">';
$content .= esc_html(stripslashes($_GET['s']));
$content .= '</span></h1>';
} elseif (is_tag()) {
$content .= '<h1 class="page-title">';
$content .= __('Tag Archives:', 'thematic');
$content .= ' <span>';
$content .= __(thematic_tag_query());
$content .= '</span></h1>';
} elseif (is_tax()) {
global $taxonomy;
$content .= '<h1 class="page-title">';
$tax = get_taxonomy($taxonomy);
$content .= $tax->labels->name . ' ';
$content .= __('Archives:', 'thematic');
$content .= ' <span>';
$content .= thematic_get_term_name();
$content .= '</span></h1>';
} elseif (is_day()) {
$content .= '<h1 class="page-title">';
$content .= sprintf(__('Daily Archives: <span>%s</span>', 'thematic'), get_the_time(get_option('date_format')));
$content .= '</h1>';
} elseif (is_month()) {
$content .= '<h1 class="page-title">';
$content .= sprintf(__('Monthly Archives: <span>%s</span>', 'thematic'), get_the_time('F Y'));
$content .= '</h1>';
} elseif (is_year()) {
$content .= '<h1 class="page-title">';
$content .= sprintf(__('Yearly Archives: <span>%s</span>', 'thematic'), get_the_time('Y'));
$content .= '</h1>';
} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
$content .= '<h1 class="page-title">';
$content .= __('Blog Archives', 'thematic');
$content .= '</h1>';
}
$content .= "\n";
echo apply_filters('childtheme_override_page_title', $content);
}