Performancing Metrics

Minor Title Tag Hack

I know this is minor but pixies.ca has a nice tip to make the title tag of your blog more search engine friendly. By default WordPress outputs the blog title when on the home page. Then blog name plus post title for individual entries. This small hack displays the blog name and blog description on the home page.

< ? bloginfo('name'); ?> < ? if ( is_home() ) { ?> &raquo; < ? bloginfo('description'); ?>< ? } ?> < ? if ( is_single() ) { ?> &raquo; Blog Archive < ? } ?> < ? wp_title(); ?>

Categories: WordPress Hacks

This post was written by . You can visit the for a short bio, more posts, and other information about the author.

Get backlinks to your Blog!

Promote Your Blog

If you are looking to promote your blog and get high quality backlinks from a PR6 2003 domain then Blogsearchengine.com is for you. For as little as $14.99 you can submit your blog and have a review written and published there with a backlink to your website or blog, we accept all niche!


Comments Closed

Comments

  1. André says: 3/5/2005

    I recommend Optimal Title Plugin

  2. John says: 3/5/2005

    What am I missing?

    To accomplish the same thing as this plugin do the following between the title tags. (Untested)

    <?php if ( is_home() ) { bloginfo(‘name’); ?>» <?php bloginfo(‘description’); } if ( is_single() ) { ?> <?php wp_title(); ?> » <? bloginfo(‘name’); } ?>

    Right?

  3. André says: 3/5/2005

    Yes looks good, the function is called optimal_title and at the end the description is being displayed