Simple SEO hacks for WordPress
Always there are trade offs. The more information you pull from your database to put in each page, the greater the drain on your server.
To do well in search engine rankings you want individual titles and meta descriptions for each individual page. To do this in WordPress you pull the information from the database in your header.php file.
When I ran into server problems I took this out and yes, it hurt my search engine rankings. Now that I’m with Media Temple and things seem to be running smooth I’m adding them back in.
Most, but not all, themes do have the title customized, few have meta tags customized and even fewer have them done properly.
To have an individual title for each separate post and page use this in place of the current title<title>…</title> in your header file.
<title><?php if (is_single() || is_page() || is_archive()) { wp_title(”,true); } else { bloginfo(‘name’); echo(‘ — ‘); bloginfo(‘description’); } ?></title>
To have a customized meta description for each page and post use this in your head.php file
<?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<meta name=”description” content=”<?php the_excerpt_rss(); ?>” />
<?php endwhile; endif; elseif(is_home()) : ?>
<meta name=”description” content=”<?php bloginfo(‘description’); ?>” />
<?php endif; ?>
I looked at several SEO optimized themes at WordPress and very few had the custom meta tags.
To see if the meta tag is working on your site pull up an individual post:
In your browser look for view->page->source
Look through the top of the page source and you should see <meta description and specific information for that page.
To see if the custom title is working bookmark the page and see if the title defaults to your blog name or the title of that page.
How do I know Google wants this. Google told me. Are you using Google Webmaster Tools?
And have you read Google Search Engine Optimization Guide ( pdf )?
2 Responses to 'Simple SEO hacks for WordPress'
Leave a Reply
You must be logged in to post a comment.
Did you ever think of something that adds “nofollow” to all external (and external only) links in post, comments, pages, blogrolls and so on?
This would be very useful to descourage spammers in search of PR leeching.
I’m thinking of this from a WP-MU perspective most of all.
xmanightx
24 Feb 10 at 7:04 am
I haven’t had much of a problem with that – I require registration before commenting and block most bots with the bot blocking plugin.
The few people who do get through and post a comment for the link are almost always small non-commercial or mom and pop shops so I let them slide.
I don’t think the spam bots check to see about no-follow tags. I think they just hit everywhere and hope for the best.
timestocome
25 Feb 10 at 5:54 pm