WordPress – Meta Tags v2.7
Version: 1.52g
Revision: 43 Build 17
Wordpress – Meta Tags v2.7
Introduction: this source code was made especially for users that has a lot of meta – tags. However, this little project took me four days to construct and repair. Its not easy constructing a piece of code for wordpress. But, it takes time and patient to complete such a task!
This source is copyrighted by Lair360 as “freeware” distribution.
But, you’ll have to keep the comments intact for use!
1.] Go to Cpanel or an FTP server and copy this code – snippet.
File Name: header.php
—Copy Source Code—
<?php
/* WordPress script copyrighted by
**** Lair360 ~2009 (Freeware)
***** Url: http://lair360.co.uk
*/
global $post;
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;
?>
—End Source Code—
Copyright 2001-2009 Lair360
2.] Add the following codes into this file: “header.php”.
This file is located in your theme directory…
Notes: you will need to delete your “keywords” meta – tags, if you want to use this source code.
3.] Save your work and check your blog’s meta – tags!
You can see it by right clicking on your mouse and select: “View Page Source” (Firefox).
4.] Done!


