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(”
”,”
”,”
”,” ”),”",$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
Related Stuff
Google Buzz Button Wordpress Plugin ReleasedIf 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 PluginsSince 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 BlogThe 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 ThemeYou 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 WordpressIn my functions.php file, I have some code which implements series posting. This relies on the thematic ...
