Internet Marketing Blog
Home      Archives      Tools      Advertising      About      Contact      Free Shipping Subscribe to our Full RSS Feed

 

SEO for Wordpress Part 1: Title Tags

When redesigning the Virtual Marketing Blog, we ran into a number of issues related to optimizing the site for search engines. One of those issues was the title tag.

The default title that comes with Wordpress will likely leave a lot of pages in Google’s supplemental results because the name of the blog appears at the beginning of each title on every page. By default the blog name appears first then some funny arrow and lastly the name of the post, category or page. The most important information appears last.

Home Page Title

We wanted our home page title to to be “Internet Marketing Blog” followed by our tag line “Internet Marketing News, Reviews and Insights”. The name of our blog is Virtual Marketing Blog, but we come up first in searches for that term even without having it in our title because we have many links coming into our site with those words in the anchor text, and they are in our url. There are more searches for “Internet Marketing Blog” than “Virtual Marketing Blog” so we can get more traffic if we rank high for “Internet Marketing Blog”.

Titles for Individual Posts

For our post pages, we wanted just the name of the post to appear in the title. Having the name of the blog at the end of the title on post pages isn’t going to improve search rankings and could put some of our pages in the supplemental results.

Titles for All Other Pages

We wanted our category pages to have the name of the category followed by the name of our blog and all other pages to show just the name of the page.

We feel that this title strategy serves us best for search. To accomplish this we use the following title tag code:

<title>
<?php if (is_home () ) { bloginfo(‘name’); echo ‘ - PUT YOUR KEYWORDS HERE’ ;}
elseif ( is_category() ) { single_cat_title(); echo ‘ - ‘ ; bloginfo(‘name’); }
elseif (is_single() ) { single_post_title();}
elseif (is_page() ) { single_post_title();}
else { echo trim(wp_title(’&raquo;’,false), ‘&raquo; ‘); } ?>
</title>

All In One SEO Pack Wordpress Plugin

Another easy solution to the title tag problem is to use the All in One SEO Pack Wordpress Plugin which allows you to create a unique title tag, meta description and meta keywords.

If you decide to use All In One SEO Pack, make sure that you don’t have meta description and keyword tags already in your header.php file. This will cause your pages to have two sets of meta description and keyword tags. Also, make sure that <?php wp_head(); ?> is placed somewhere between the <head> and </head> tags to ensure that the meta description and keyword tags show up.

More SEO for Wordpress:
SEO for Wordpress Part 1: Title Tags
SEO for Wordpress Part 2: Header Tags
SEO for Wordpress Part 3: Filenames
SEO for Wordpress Part 4: Meta Description
SEO for Wordpress Part 5: Duplicate Content
SEO for Wordpress Part 6: Organizing Category Pages


Spread the word: del.icio.us Digg Furl Reddit StumbleUpon Technorati

If you like this post, then consider subscribing to our full feed RSS.


       Posted in: SEO, SEO for Wordpress
     by: Luke Knowles
Your Thoughts? [ 11 ]      
August 4, 2007       
 
 
   
  Comments (11)  
 

Thanks for the code. I’ve been looking for title tag code for my wordpress blog.

       Frank the Tank August 4, 2007        
 
 

Great post, very unselfish of you to share your code with the rest of us.

       JoshBB August 4, 2007        
 
 

Great post on SEO for word press. Very informative.

       Ian August 7, 2007        
 
 

[...] series, currently consisting of 6 parts. I recommend starting with part one relating to the WordPress Title Tag and reading from [...]

       Weekend Reading for 8/18/2007 | Entrepreneurial Blog of Matt Huggins August 18, 2007        
 
 

[...] is purely to point you to Virtual Marketing Blog so you can read Luke Knowles’ posts about SEO for Wordpress. There are six parts up so far and I don’t know what he has planned for the future but the [...]

       SEO for Wordpress at Lead Optimize.com September 4, 2007        
 
 

Where does this code go?

       Jay September 5, 2007        
 
 

Hi Jay,
Put this code in place of the Title tag code in your header.php file.

       Luke Knowles September 5, 2007        
 
 

[...] SEO for Wordpress Part 1: Title Tags [...]

       This Week In SEO - 9/7/07 - TheVanBlog September 7, 2007        
 
 

Hey i think there is a plugin that does this. its called all-in-one seo plugin. You can change the title and meta description of the blog as well as each individual post.

Heres the link

http://wp.uberdose.com/2007/03.....-seo-pack/

I also use another plugin that reverses the way wordpress displays page titles. Instead of showing your blogs name then the post title, it displays the post title then the blogs name. If that makes sense.

Heres that link

http://elasticdog.com/2004/09/optimal-title/

       Clogged Drain September 8, 2007        
 
 

This series of posts is amazing - I’m copying everything to word pad and printing it out!

       Starbucks Addict April 21, 2008        
 
 

Hi there.

I’m playing around with PHP IF cases and the title-tag in Wordpress, too, but I had a problem with my code and even your code doesn’t work that way.
I don’t know exactly what the problem is, but WP always gets a hickup on the closing tag…

You can read about my solution here, I’m afraid it’s in german:
http://www.lestarte.com/blog/2.....title-tag/
But: The code-snippet is the important stuff and it’s in english of course. With a correct closing title-tag it’s not working, even with your code. I don’t get it, it’s purely unlogical.

Greetings,
Oliver

       Lestarte June 30, 2008        
 
  Leave a Comment
Please respond with a comment using the form below.

  
  
  
Comments

 
   
 
   
  Internet Marketing Campaigns  
  Sony Bravia Campaign Goes Viral Again
Dove Onslaught Viral Video
Into the Wild Internet Marketing Cross Promotion
Halo 3 Internet Marketing Campaign
Hundai - Lattes vs Airbags "Think About It"
Heinz Top This TV Challenge
McDonalds Uses Viral youTube Video in its Latest TV Ad
The Simpsons Movie Marketing Madness
 
  Must Read Posts  
  Free Shipping Web Site Launches
SEO For Wordpress Series
How to Make Money with Facebook
Everything You Need to Know About rel=nofollow
7 Tips For Starting Your Own Facebook Group
Internet Marketing Case Study: WH Bed & Breakfast
9 Ways to Improve Google Image Search Rankings
Free Samples Equals Viral Marketing Success
4 Reasons Not To Put Your Company in the Wikipedia
Learn How to Make Facebook Applications
Easy Auction Ads Wordpress Plugin
 
  Categories  
 
 
  RSS Feed  
  Subscribe to RSS
Subscribe by Email
 
  Search  
 
 
  Sites  
   
  Commenters
 
 
 
Home      Archives      Tools      Advertising      About      Contact      Coupons © 2009 Virtual Marketing Blog