WordPress SEO: Optimizing Your <title>

Often times, the <title> tag is overlooked when creating a theme. This tutorial will help you optimize the <title> tag for your specific needs.

I’m a huge fan of optimizing my <title>, but it takes some work to do it.

In any thing I create or modify, I always have a separate title.php file because I normally have 10-15 lines in the file for my <title>.

Edit: Use this to include the file: <?php include(‘title.php’); ?> in your <head> section of the header.php file.

Here is what I use,

<title><?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;

if(is_home()) { echo 'My News Site.'; }
elseif(is_single()) { the_title() . ' - My News Site.'; }
elseif(is_date()) { echo 'Site Archives - ' . get_the_time('M Y'); }
elseif(is_category()) { echo single_cat_title() . ' News - My Site'; }
elseif(is_page()) { the_title(); }
elseif(is_search()) { echo 'My News Site Search: ' . $s; }
elseif(is_tag()) { echo single_tag_title('My Site Tag: ',true); }
elseif(is_author()) { echo 'Site Author - ' . $curauth->display_name; }
else { echo "Sorry, page not found."; }
?></title>

Then, to simple include this file in your theme, use <?php include(‘title.php’); ?> where you would normally have the <title> and it will show up as planned.

The reason I do this for my <title>’s is because the default method used in WordPress has never been satisfactory for me. Additionally, and primarily, I have seen far better SEO results because of this.

WPTD: SEO Slugs

SEO Slugs is a plugin specifically for SEO. It helps because it shortens your permalink slugs by removing common articles like a, the, be, and, if, etc etc.

Why does this help with SEO? Search engines will commonly disregard articles such as these in search queries already, so it then renders them pointless to have them in your permalink slug.

Additionally, it looks better and by nature, shorter permalinks are always better.
Read more of this post

WPTD: RSS Footer

The RSS Footer plugin is a great way to manage additional copyright information or possibly adding some advertisements.

I personally add information about my site and about myself because a number of sites will syndicate my content and I’ll retain those backlinks back to my sites.

Worth checking out if you need something like this.
Read more of this post

WPTD: DoFollow

This plugin, DoFollow, does essentially one thing: it follows. By default, WordPress blogs are setup with the rel=”nofollow” tag on all comment links because WordPress doesn’t want blog authors to give credit to these comment links (too much spam out there).

So to combat that, it was set to default to nofollow these comment links.

But there are plenty of competent people out there that know how to moderate their blogs well enough to know what is spam and what isn’t spam. So, to give link love and credit to those commenters that spend their valuable time to actually comment, this plugin was created.

Check it out if you want to give back to the community that supports you.
Read more of this post

WPTD: Google XML Sitemaps

Here is a slightly different sitemap plugin than before. With the Dagon Sitemap Generator, it was generating an HTML version.

This plugin creates an XML version for Google Sitemaps, Yahoo!, and Microsoft’s Live.com. This is a great utility to have for blog authors because it offers an easy way to search engines to easily see what is available on the blog.

Many themes for WordPress can cause search engine issues because the internal links are not properly mapped out. But, this tool will help give better visibility to your content to the search engines so they can crawl and index your content.
Read more of this post

WPTD: No Self Pings

I am a person that likes compete control over my internal linking. I do not like to depend on self pings just to show something of relevance.

This plugin, by Michael Adams, is a great plugin because it enforces no self pings. So when you link to another post on your site, it does not ping itself and show up in the comments.

You can achieve the same thing by linking to other posts using relative links, such as /2008/24/post-name/ instead of the full domain.com/2008/24/post-name/ link, but for SEO benefits, having the full link is better.

http://wordpress.org/extend/plugins/no-self-ping/
http://blogwaffe.com/2006/10/04/421/

WPTD: Top Level Categories

Today’s plugin highlight is Top Level Categories.

I use this plugin frequently because I don’t want to be forced to use something like /topic/cat1/ or /section/cat2/ or whatever it may be.

What does this plugin do? It strips the requirement to have /topic/ or /category/ or /section/ before the actual category name. So you can do example.com/cat1 or example.com/cat2/subcat1/ directly, creating cleaner permalinks (and shorter permalinks).

http://wordpress.org/extend/plugins/top-level-cats/
http://fortes.com/projects/wordpress/top-level-cats/

WPTD: Redirection

The plugin Redirection offers fairly simple functionality, but functionality that is quite handy.

Instead of having to insert links into your .htaccess file for redirects, you can manage them all directly through your WordPress Dashboard. This plugin even offers an automatic-URL generator, meaning, you just insert the target destination and it will generate a link for you.

It offers different types of redirects, such as 301, 302, 307, pass-through, redirects based on if you’re logged in, and a number of other options.

http://wordpress.org/extend/plugins/redirection/
http://urbangiraffe.com/plugins/redirection/

WPTD: Nice Search

Mark brings us the “nice search” plugin which changes the ?s= permalink to a /search/item1+item2 permalink. Great for keeping those nasty queries out of your site.

http://txfx.net/code/wordpress/nice-search/

WPTD: Dagon Sitemap Generator

This plugin will let you generate a complete HTML sitemap instead of just an XML sitemap. This is a great plugin for two reasons.

Reason #1, it gives users a complete layout of your site (provided you set the options for that) so they can see what your entire site looks like.

Reason #2, for the smaller search engines that don’t yet use XML sitemaps, it will provide those spiders a roadmap of your site.

http://wordpress.org/extend/plugins/sitemap-generator/
http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/