I received an email earlier today from an iMod reader asking me about nofollow links – Naturally I pointed them out to the search engine optimization category and they soon returned understanding the concept and wondering how to remove nofollows from their blog, which was running on WordPress, so I set forth and put something together.
If you’re familiar with SEO and WordPress, you’ll know that a lot of WordPress Themes automatically add nofollow links because they think nofollow is the best SEO practise, when in fact it can actually damage your rank.
Here’s a simple function that you can use to ensure that the links in your posts don’t contain nofollow’s:
function kill_nofollow($str) {
$str = str_ireplace(‘ rel=”nofollow”‘, ”, $str);
return $string;
}
add_filter(‘the_content’, ‘kill_nofollow’);
The concept is incredibly easy, all you are doing is replacing all occurances of rel=nofollow with nothing – this is then applied to the_content which is the call to the content of a post :)





