• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

Optimize WordPress title style without All in One SEO ...

Most guys see All in One SEO Pack which is ranked first in the downloaded ranking. Well, No.1 is a lot more attractive of course, but popSOHO didn’t follow that. Carefully studying the plug-in, we can find the following functions of it as below:

   1. Add independent descriptions and keywords manually.
   2. Generating article excerpts automatically.
   3. Avoid repeated crawling by search engines.

All of functions above can easily achieved by small changing of WP codes, which in addition reduces the negative effect of using a plugin. Some WP versions did that for users, and some other templates like inove didn’t. We today show the steps of that kind of optimizing.

    * Title optimizing

Find the codes as following, usually in your header.php file:
<title><?php bloginfo(’name’); ?><?php wp_title(); ?></title>

or codes are similar to them with the tag <title> and</title>. Then replace the codes by following:
<?php if (is_home () ) { echo $description; echo ” – “;bloginfo(’name’); } elseif ( is_category() ) { single_cat_title();echo ” – “; bloginfo(’name’); } elseif (is_single() || is_page() ) { single_post_title(); echo ” – “; bloginfo(’name’); }elseif (is_search() ) { bloginfo(’name’); echo “search results:”; echo wp_specialchars($s); } else { wp_title(”,true); } ?>

Now you get the same title style as popSOHO.om.

    * Meta optimizing

Of course, you should also define the meta as following:
<?php
if (is_home() || is_page())
{
$description = “Top Keys to Online Earning and Best Tips for Online Shopping”;
$keywords = “popsoho, make money online, SEO”;
}// replace by your own description and keyword of course.
elseif (is_single())
{
$desc = “description”;
$key = “keywords”;
$description = get_post_meta($post->ID, $desc, true);
$keywords = get_post_meta($post->ID, $key, true);
}
elseif (is_category())
{
$text = category_description();
$description = strip_tags($text);
}
$description = str_replace(array(” ”,” ”,” ”,”&nbsp;”),”",$description);
$keywords = str_replace(array(” ”,” ”,” ”),”",$keywords);
?>
<meta name=”description” content=”<?php echo $description; ?>” />
<?php if ( !is_category() ) { ?>
<meta name=”keywords” content=”<?php echo $keywords; ?>” />
<?php } ?>
<?php if ( is_category() ) { ?>
<meta name=”keywords” content=”<?php wp_title(’ ‘); ?>” />
<?php } ?>

Add codes above between the php tags <head> and </head>, and you’d better let the codes before the <title> tag mentioned above when optimizing the title.

Now you can define your own description and keyword metadata in the Custom Fields. After all that steps, you can add description and keyword respectively for each article before your posting.

 Original Source:
http://www.popsoho.com/2009/12/optimize-wordpress-title-style-without-all-in-one-seo.html

AddThis Social Bookmark Button

Posted at 11:45:38 am | Permalink | Posted in SEO  

Related Stuff

Google Buzz Button Wordpress Plugin Released

If you are looking for a Google Buzz button to add into your Wordpress site then we have released the first Wordpress plugin exclusively ...

Plug And Play Ecommerce With Wordpress Plugins

Since 2003 Wordpress has slowly been gaining popularity amongst the elite of the internet, the bloggers. It is one of those few things ...

Add Google Search to Your WordPress Blog

The native WordPress search does not return very relevant results, thus it makes a lot of sense to add Google Search into your WordPress ...

Add More Sidebars to Your WordPress Theme

You can add more than one sidebar section to your WordPress site. For example, with the stc-intermountain.org site, I added a whole bunch ...

Series Posting in Wordpress

In my functions.php file, I have some code which implements series posting. This relies on the thematic ...

Top Stuff

Free Blogger templates Anime Themes

Wordpress Guestbook Generator Plugin

48 Unique Ways To Use WordPress

GeekLog

WordPress Single Post Templates

Get The Image WordPress Plugin



About Webloglines

Webloglines is a project offers a comprehensive collection of blogging services, articles, themes and plugins from around the world. Whether you're looking to promote your own blog or find blogs on various topics, this site is for you.


Search


Topics

  • Adsense (12)
  • Blogging Tips (73)
  • Blogs Slides (25)
  • Blogs Websites (22)
  • Digg (20)
  • How to Blog (129)
  • Search Engines (9)
  • SEO (135)
  • WordPress Plugins (269)
  • WordPress Security (75)
  • Wordpress Themes (99)
  • Wordpress Tips (162)

© 2006 www.webloglines.com. All Rights Reserved. Powered by IRange