I once attended an SEO Workshop by the Singapore SEO Expert, and the trainer related to me that it is important to have a different meta description and meta keywords tag for each page of a website you are building.
Since I was working primarily on blogs, I was kind of disappointed because I thought blogs all use the same template, and most of them provided for only a different post title and content for each different post.
I particularly love working with WordPress (I’m a control freak when it comes to websites!) and I was investigating this issue further yesterday in the WordPress Codex, and I found a solution – and one that does not even require an extra plug-in! Custom Fields!
How do you get started?
First, you have to add some custom fields to your post. This is done when you are composing your post in the admin panel. There is a section under the main post called custom fields. Use that section to add the two meta tags in – description and keywords. And don’t limit yourself to description and keywords – you could have anything else! Author description, What I am doing, Weather, Mood etc.
Next, you have to edit your WordPress blog template.
In the template’s single.php file, add these two lines inside your HTML head.
content="<?php echo(get_post_meta($post->ID, "Description", true)); ?>">
content="<?php echo(get_post_meta($post->ID, "Keywords", true)); ?>">
Then, you are done! The
get_post_meta() function retrieves the custom fields according to what you keyed in.
For more information on the WordPress meta functions and custom fields, check out Using Custom Fields in the WordPress Codex.