dichotom
BANNED
- Dec 9, 2008
- 2,574
- 838
I was doing some SEO on a couple blogs today and came up with this, it takes your post title and turns it into meta keywords. Just edit your header.php for your theme and put it above </head>. Works better than all in one seo for me, especially if you are autoblogging.
Basically it just gets rid of any existing commas and extra spaces, adds commas back between the words and echos them out. As you can see above you can easily add static keywords around the dynamic ones it generates. You can also not do that.
I haven't tested this on 100 blogs or anything but it's not like it will splode your site if a keyword or two are strange, and from what I saw of it beats hell out of what AIO was doing anyway so you can't really lose here. If you have a problem or a cool modification, please post!
Code:
<meta name="keywords" content="keyword, another kw, <?php
global $post;
$key = $post->post_title;
$key = str_replace(",", "", $key);
$key = str_replace(" ", " ", $key);
$key = str_replace(" ", ", ", $key);
echo $key;
?>, yet another kw" />
Basically it just gets rid of any existing commas and extra spaces, adds commas back between the words and echos them out. As you can see above you can easily add static keywords around the dynamic ones it generates. You can also not do that.