Forums

Meta Title for category/tag combos (1 post)

  1. calciumwaste
    Member
    Posted 1 year ago #

    right now I am using some cat=&tag= archive pages on my site, but the meta title tag for these pages just shows the tag name. I would like it to show both the tag and the category name. Is that possible? If it is not possible to do it systematically, can I override the title for a specific page?

    I am using the Twenty Ten meta title code:

    <title><?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;

    wp_title( '|', true, 'right' );

    // Add the blog name.
    bloginfo( 'name' );

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";

    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
    echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );

    ?></title>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags