Blog Titles


Code to Setup Titles & Meta Descriptions

Blog Titles

While there are many reasons to have a blog, two of the main reasons I have one is to produce content and to target key phrases.

The search engines love original content and the more the better. Having a blog, or a number of blogs, enables you to easily produce lots of content.

I use my blog to target the long tail key phrases that prospective customers search that need the products I sell. That brings us to the subject of this post, how to set up your titles and meta description.

Titles are the most important items when it comes to on-page optimization. Your title tag of each page should be the key phrase you are targeting with that page and that key phrase by itself. Don’t dilute it by adding your blog name or company name on the end of your title.

One of the next important items in on-page optimization is the Meta Description tag. Your Meta Description text needs to be different on each page. If the Meta Description of each page is not differnet Google can tag your pages as similar pages and in some cases put them in the supplemental index.

I have been working this month applying my list of 50 blog optimization tips I have completed over the last 6 months to my 4 blogs. I have had my coders develop a simple Title Optimization plugin that I am now using. In the process I also optimized the titles and Meta description for each type of page on my blog. The following is my results.

With the Title Optimization plugin installed this is the code I used to optimize my title and Meta description tags.

Code to Produce the Title Tag:

< ?php $sPageTitle = the_generated_title($company);
$sTitle = $sPageTitle;}
$sTitle = showCurrentTag();}
$sTitle = get_bloginfo('name');?>

<title>< ?php print $sTitle;?></title>

Code to Produce the Meta Description:

< ?php $sSubTitle = theSubtitle();
if (is_archive() AND !is_category()){
$sDesc = $sTitle.' -- '.'The blog post(s) on this page are from '.$sTitle;
}elseif(is_single() AND $sSubTitle){
$sDesc = $sSubTitle.' -- '.head_meta_desc();
$sDesc = $sTitle.' -- '.head_meta_desc();}?>

<meta name="description" content="<?php print $sDesc;?>" />

The functions the_generated_title() and head_meta_desc() are located in the functions.php file that comes with WordPress 2.1. The functions have been modified so if you are having problems getting the Page Optimization plugin to work post in the comments and I will post the function code. The function theSubtitle() is in the Title Optimization plugin file (title-optimization.php).

The above code produces the following results in each of the differnet type of pages on this blog.

Blog Post Page:
<title>Blog Titles</title>
<meta name="description" content="Code to Setup Titles & Meta Descriptions -- How I Use the WordPress Page Optimization plugin to optimize my blog." />

Home Page:
<title>SEO Blog</title>
<meta name="description" content="SEO Blog -- Provides search engine marketing news, research, and tips that will increasing website traffic, conversions, and income." />

Category Page:
<meta name="description" content="Blogging -- News, WordPress plugins, and how to optmiztion your blog for higher rankings. " />

Archive Page:
<title>2007 July</title>
<meta name="description" content="2007 July -- The blog post(s) on this page are from 2007 July" />

Tag Cloud Page:
<title>Tag Cloud</title>
<meta name="description" content="Tag Cloud -- The tag cloud page allows you to view pages of posts grouped by tag subjects." />

Tag Page:
<title>Matt Cutts Video</title>
<meta name="description" content="Matt Cutts Video -- Matt Cutts the head of Google spam department has made a number of informitive videos and posted them on YouTube." />

Blog Titles

Blog Titles <-- Click to go to the top of the page.

2 Responses to “Blog Titles”

  1. Says:


    thanks for the code snippets :)
    actually you forgot to mention the most critical reason for blogging i.e. monetizing the blog

  2. Admin - SEO Company Says:

    I don’t blog to monetize the blog, I use the blogging media to target key phrases prospective customers are searching. I then move the visitors from my blog to my sale pages.