If you work with websites, or even search the web, most likely you have heard of “keywords†on webpages. From google adwords to search engines, keywords have been used all over.
At different points, various search engines have placed (or not placed) value on keywords to search websites all over the internet. How many, the weight and value, which and when to use keywords now vary from search engine to search engine.
When creating a static website, it is easy to add the meta elements in the header. When creating a website with wordpress, various plugins can be used.
Another option in WordPress 2.6 is to edit your header.php file to use the tags in a post as your keywords. After tiring of using plugin after plugin and having more database entries than I wanted, I ended up just replacing the meta field for keywords with this snippit.
Not only will this use the tags for the post on the actual single, archive and index page, it will also do it in a way that if there are no keywords, it will still validate in XHTML 1.0 and not give an error.
if( is_single() || is_page() || is_home() ) :
$tags = get_the_tags($post->ID);
if($tags) :
foreach($tags as $tag) :
$sep = (empty($keywords)) ? ” : ‘, ‘;
$keywords .= $sep . $tag->name;
endforeach;
?>
<meta name=”keywords” content=”<?php echo $keywords; ?>” />
<?php
endif;
endif;
?>
This may or may not work in other versions of WordPress – it depends on if the version you are using uses get_the_tags






You are right in what you have said. I was only thinking this the other day but I think I will now dig a little deeper. Not sure what the last guy meant though!
Please post something on SEO basics as this blog is too good.
thanks for sharing i loved the blog.
Interesting post, just signed up to your RSS feed, hope to find some more great content here
Iphone News, to get the captcha code just google “captcha code plugin”. It´s free.
I have to say I’m really impressed with your posts and blog overall. I stumbled on your site accidentally but am now happy I did. I’ll be stopping in to read more often now. Thanks again !
Thanks,
Lou
It’s nice to finally find a site where the blogger knows what they are talking about.
There is obviously a lot to know about this. I think you made some good points in this subject. So, just want to say great job!
Do you work in this industry? YOu seem to know a lot about the subject.
I strongly recommend that you turn the No Follow off in your comment section. I’ll watch Google Webmaster Tools, and if the links don’t show up after a couple of weeks — I won’t go back to that blog again. Another suggestion: you should have a Top Commentator widget installed. Do Follow and Top Commentator will ensure that you have a successful blog with lots of readers!
What is captcha code?, pls provide me captcha code codes or plugin, Thanks in advance.
Nice article, i love it, thanks for sharing