• I only see meta tag plug-ins for the description and and keyword meta tags.

    Do all templates insert the title tag of each post automactically?

    If not, is there a plug-in that includes this meta tag also?

    What plug-in do you recommend?

Viewing 7 replies - 1 through 7 (of 7 total)
  • By title tag, do you mean the post slug?

    Titles are not considered “meta” in an HTML doc.

    To add post titles, make sure this is used in your theme’s <title> element:

    http://codex.wordpress.org/Template_Tags/wp_title

    Thread Starter v2006

    (@v2006)

    Some clarification please

    Will this default code include the title of each post/page generated?

    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    It should, yes. The

    if ( is_single() ) { }

    portion outputs “» Blog Archive” only on single post pages, while wp_title() displays the post’s title. Is that not working?

    Thread Starter v2006

    (@v2006)

    Yes, it is but what are the merits of replacing the above code with

    <title>
    <?php wp_title(‘ ‘); ?>
    <?php if(wp_title(‘ ‘, false)) { echo ‘–‘; } ?>
    <?php bloginfo(‘name’); ?>
    </title>

    This code appears to be quite different

    Thank you

    It’s different only in that whatever wp_title() displays comes before blog name; the if(wp_title(' ', false) tests on if it returns something, and when it does adds a separator (--) between the two.

    But merits? That’s not something I’d make a judgement on, since it all depends on how *you* want your titles.

    Thread Starter v2006

    (@v2006)

    Thanks very much for the clarification and taking the time to answer.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Best Meta Tag Plug-in’ is closed to new replies.