About WordPress and friendly meta tags
I have seen lots of WordPress themes which don’t come with a good seo friendly meta tag. Even the default WordPress theme, Kubrick, does not supply any meta tag beside the ones for the system itself.
First, we need to understand what is meta tags.
Meta elements provide information about a given Web page, most often to help search engines categorize them correctly.
Quote from Wikipedia
So it is not about ranking, but about how a search engine categorise your site. On September 2009, Google team write a blog post about the long time myth of meta tag on Google ranking. A lot of webmasters got disappointed.
Of course, since you have a website, you wouldn’t want it to optimize for the ranking only, you will of course want to have a better categorisation from all the search engine.
So how do you place your meta tag on WordPress theme?

You login to theme editor and added:
<meta name=”description” content=”This is my website”>
<meta name=”keywords” content=”This, is, my, key, words”>
Then you logoff happily thinking that search engines will categorised your site nicely, even though you have multiple categories that has different content. Wait… Different content? So do I need a lot more keyword?
Well, there is always a way to make it more seo friendly, especially with WordPress and its codex. I was visiting template codex the other day ans found that there was this codex get_the_tags. Interesting enough, this tag returns an array of objects, one object for each tag assigned to the post. Means it will create something like:
tag1, tag2, tag3, tag4…
<meta name=”keywords” content=”
<?php if (is_single()){ ?>
<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ‘, ‘;
}
}
?>
<?php } else { echo “my, website, key, words”; } ?>”
/>
Let’s break it down. This is for meta keywords, which accord to your posts’ tags. If your blog post tagged “WordPress” it will because the meta keyword for the specific page.
<meta name=”keywords” content=” //* If the page is on single page/post it shows
<?php if (is_single()){ ?>
<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ‘, ‘;
}
}
?>
<?php } else { echo “my, website, key, words”; } ?>” //* else it will show the originally planned keywords.
/>
Now you have different keyword for different posts.

