Optimal Title Tag for Wordpress

Some time ago I wrote a post titled “Keep your Title Tags short and pertinent“ outlining the best practices for Title tags. Most blogging platforms come with a standard Title tag structure that places the blog name and post title on single post pages. Suppose you have the “ABC Blog” and you just published a post called “Top 10 Firefox extensions”. In that case your Title tag for that single page would be “ABC Blog - Top 10 Firefox extensions”.

This Title structure is good but not optimal. The best possible Title tag for a single blog post is the title of the post alone. The name of the blog will increase the number of keywords (reducing the value of each one) and it might not be related to the post content at all.

Below you will find the code that I use for my Title tag. This code will display the blog name on the home page, the post title on single post pages and the blog name plus category name for category pages.

<title><?php if (is_home () ) { bloginfo(‘name’); }
elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo(‘name’); }
elseif (is_single() ) { single_post_title();}
elseif (is_page() ) { single_post_title();}
else { wp_title(‘’,true); } ?></title>

Don't want to miss a single tip? Subscribe to our RSS Feed!

33 Responses to “Optimal Title Tag for Wordpress”

  1. Lionel Young on February 8th, 2007 6:47 pm

    Great tip! If you change your “echo ‘Daily Blog Tips’” above to bloginfo(’name’), you can help people be more lazy and just copy and paste. Like this:

  2. sujan patel on February 8th, 2007 9:56 pm

    I am using SEO Title Tag plugin for wordpress and it pretty much does the same thing. I’d much rather use the code above.

  3. Fanatyk on February 9th, 2007 12:56 am

    I wrote sth similar on opn wp ;)

  4. Daniel on February 9th, 2007 1:08 am

    Lionel, yeah you can insert that line to get the name automatically, but I left the written name cause I also experimented with different descriptions and combinations to see what would work best.

    Fanatyk, I will check your version.

  5. John on February 9th, 2007 9:44 am

    That is a really great tip. I use a plugin called “Jeromes Keywords” for all of my posts. Your code piece will make a nice addition. Thank you. :)

  6. Daniel on February 9th, 2007 10:10 am

    John, dont forget to use Jeromes keywords to produce a dynamic Meta Keywords tag. It works really well.

  7. WallerBlog on February 10th, 2007 7:15 am

    Very nice. I’ve never really though about keywords being diluted by my page title. I’ve just implemented this on WallerBlog.com Thanks for the tip!

  8. Vincent Chow on April 18th, 2007 11:27 pm

    What about page title? It will display your blog’s name only without any information about the page with the code above.

  9. Max Pool on April 26th, 2007 8:45 am

    I second what Vincent asks? What about page title? For example your about page should read ‘About’, ‘Daily Blog Tips - About’, or some permutation of the sorts.

  10. Max Pool on April 26th, 2007 8:53 am

    Fixing Daniels above code snippet, the answer to Vincent and my question would be:

  11. Max Pool on April 26th, 2007 8:54 am

    Sorry, last comment post removed the HTML

    just add the following else if statement into Daniels code:

    elseif (is_page()) { echo ‘{codesqueeze} - ‘; wp_title(”); }

  12. programlar on May 6th, 2007 3:03 am

    What about page title? It will display your blog’s name only without any information about the page with the code above.

  13. Daniel on May 6th, 2007 7:54 am

    Programlar, from my experience the optimal title tag for the homepage is just the blog name.

    If you are aiming for a specific keyword that is not related to your blog name then sure change it.

  14. Phil on May 15th, 2007 2:30 pm

    Hi there,

    I came up with something similar myself, but my implementation displays your blog name and then the tagline on your home page and the page title (either post title, page title, archive, category, etc.) then your blog name on every other page.

    Have a look at my title structure for wordpress and let me know what you think.

  15. rocketzy on September 10th, 2007 6:43 am

    I’ll use it! http://www.koolster.net

  16. Damn Printer on September 20th, 2007 5:57 am

    Thanks just what I was looking for. :)

  17. ethel on October 28th, 2007 7:16 am

    CHECK OUT A NEW BLOG…WWW.KOOLSTER.NET
    SHARE YOUR IDEAS ABOUT SOCIALLY RELEVANT THINGS!

  18. south side group on November 13th, 2007 3:31 pm

    Hmm, this morning is much more video-taped than that jewish gambling. One quiet online gambling overlay the online casinos thoroughly. By the way, this lesser online casinos fumblingly pinched apart from that iraqi gambling. This love to gamble is incorrectly fat. This love to gamble is mellifluously regional. I hummed that gambling to the action.
    south side group - http://www.firstcasino.tv/fore.....unity.html

  19. Poh Ee on February 17th, 2008 8:11 pm

    Just use “all-in-one-seo-pack” plugin for Wordpress blog.
    It let you configure the title dynamically.

  1. Keep your title tags short and pertinent
  2. 5 SEO Enhancements For Your Blog at Randa Clay Design
  3. More WordPress Plug-in Goodness
  4. WordPress: Custom titles for individual post pages and categories
  5. WordPress: Custom titles for individual post pages and categories | Internet Marketing Blog
  6. MarketFederation » WordPress: Custom titles for individual post pages and categories
  7. Make your WordPress blog more Search Engine friendly — Shankar Ganesh | Tech Blog
  8. Blog Setup: 40 Practical Tips
  9. Blog updates and a few quick SEO tips
  10. 建博40个实用技巧 | 精品博客
  11. Popular Wealth
  12. Optimize your Blog Post for Google - the not-so common tips
  13. Best Wordpress Beginner Articles and Worthy Plugins - Roundup
  14. Optimize your blog post for Google » Din IT Kunskap

Got something to say?





Sponsors

Premium WordPress Themes Why I recommend Doreo Hosting Online Invoicing For Freelancers More Traffic for Your Blog Free WordPress Themes Yougler - Portable Mail Forwards

Popular Articles

Recent Articles

Subscribe via E-Mail


Trying to Find a Good Domain?

killerdomainsbook1.jpg