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 »


milotitles1

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 – ).

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('&laquo;', 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(' &mdash; '); 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?

milo WordPress Hacks Series: The cipher in these posts was cursive all by Milo, a web specializer from Oxford, Britain. Check discover her website for liberated WordPress themes and her blog, or study her on Twitter!


Share This Post

Please share your thoughts




You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA Image Audio Version
Reload Image

Search Blog

Recent Posts

Topics

Feed

Blogroll


Archives