A WordPress Plugin for SEO (Search Engine Optimization)
October 24th, 2006 by mescalito
Installation instructions
- Upload seo-title-tag.php to your wp-content/plugins directory.
- Activate the plugin.
- Under Presentation -> Theme Editor in the WordPress admin, select “Header” from the list and replace:
<title><?php bloginfo('name'); wp_title(); ?></title>(or whatever you have in your <title> container with:
<title><?php if (function_exists('seo_title_tag')) { seo_title_tag(); } else { bloginfo('name'); wp_title();} ?></title> - Under Options -> SEO Title Tag, specify a title tag for your home page which will override your blog name as the home page’s title tag. You can also configure here whether you want all the rest of your site’s title tags to have your blog name, or a shortened version of your blog name, or neither, appended to the end.
- Define category descriptions in the admin under Manage -> Categories. When defined, these will be used in place of category names in the title tag on category pages (e.g. yourdomain.com/archives/category/uncategorized/)
- As desired, you can add a custom field called title_tag (or whatever you alternatively specified as the custom field name under Options -> SEO Title Tag) to any post or Page which will be used as a replacement title tag, specifically and only for that page. Don’t like the title tag for a particular post? No problem: just define a custom field when writing or editing a post or page in the WordPress admin. Custom Fields is above the “Delete this page” button. You may need to hit the plus sign to the right of Custom Fields to expand that section. The Key is title_tag (unless you’ve changed it in the Options) and the Value is whatever you want that post’s/page’s title tag to be.
To learn more about search engine optimizing your WordPress blog, you’ll probably want to read Stephan Spencer’s 10 tip series on Blog SEO.





















