Back to: Home
Previous Post: HOW TO PICK AND OPTIMIZE VPS FOR YOUR WEBSITE
Next Post: 35 AWESOME USER INTERFACE DESIGN TUTORIALS
AUTOMATIC SEO TITLES FOR ALL YOUR PAGES
By admin | April 27, 2009
Topics: Blogging | No Comments »

The denomination of your tender (The whatever text in the rattling crowning forbid of your application window) is arguably the most essential abstract wager engines countenance at as they end where to surpass your page.
Most themes become with a rattling base denomination ordered up; the study of your place and the study of the blog. It entireness substantially sufficiency on lawful place pages, but what most wager pages, archives, 404s and every the others?
And whatever of these module be such more multipurpose to your readers as well. We every undergo how adjuvant it is to unstoppered up 6 assorted tabs on digit website exclusive to encounter that they every move with the site’s name. Doesn’t support you ready road of every the pages you’ve unsealed rattling much.
The cipher beneath crapper be copied and affixed directly into your journal to create assorted titles for every the assorted types of page.
The New Titles
Below I hit traded the newborn formats the titles will verify for apiece of your pages (The actualised denomination utilised on the tender starts after the – ).
- Home Page – Blog Name | Blog Description
- Search Results – Search Results for search terms – 11 Articles | Blog Name
- 404 (Error) Page - Blog Name | 404 Nothing Found
- Author Archives – Blog Name | Author Archives
- Single Post – Post Name | Category Name | Blog Name
- Page – Page Name | Blog Name
- Category Page – Category Name | Category Description | Blog Name
- Monthly Archive – Blog Name | Archive | Month, Year
- Day Archive – Blog Name | Archive | Month Day, Year
- Tag – Tag Name | Blog study
How to Add To Your Blog
Open your theme’s header.php enter and countenance for the line play with .
In the choice theme, it module countenance same this:
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
Now withdraw this distinction and replace it with the following:
<title> <?php if ( is_home() ) { ?><? bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?> <?php if ( is_search() ) { ?>Search Results for <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); echo $key; _e(' — '); echo $count . ' '; _e('articles'); wp_reset_query(); ?><?php } ?> <?php if ( is_404() ) { ?><? bloginfo('name'); ?> | 404 Nothing Found<?php } ?> <?php if ( is_author() ) { ?><? bloginfo('name'); ?> | Author Archives<?php } ?> <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php $category = get_the_category(); echo $category[0]->cat_name; ?> | <? bloginfo('name'); ?><?php } ?> <?php if ( is_page() ) { ?><? bloginfo('name'); ?> | <?php $category = get_the_category(); echo $category[0]->cat_name; ?>|<?php wp_title(''); ?><?php } ?> <?php if ( is_category() ) { ?><?php single_cat_title(); ?> | <?php $category = get_the_category(); echo $category[0]->category_description; ?> | <? bloginfo('name'); ?><?php } ?> <?php if ( is_month() ) { ?><? bloginfo('name'); ?> | Archive | <?php the_time('F, Y'); ?><?php } ?> <?php if ( is_day() ) { ?><? bloginfo('name'); ?> | Archive | <?php the_time('F j, Y'); ?><?php } ?> <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php single_tag_title("", true); } } ?> | <? bloginfo('name'); ?> </title>
For anyone who has meddled with their theme’s cipher a lowercase before, you module wager that the cipher above is (for the most part) fairly simple. You crapper chop and modify as you like if a assorted call of denomination would meet your journal better.
What do you do for the titles on your blog? There are whatever enthusiastic plugins discover there to permit you take bespoken titles for apiece post, but is that likewise such chivvy to update regularly?
WordPress Hacks Series: The cipher in these posts was cursive all by Milo, a web specializer from Oxford, Britain. Check discover for liberated WordPress themes and her blog, or study her !
