Hi,
Is it possible to add nofollow to links created by the_tags without editing the core files?
I tried adding the following to functions.php:
function szub_nofollow_tag($text) {
return str_replace('<a href=', '<a rel="nofollow" href=', $text);
}
add_filter('the_tags', 'szub_nofollow_tag');
But it doesn't work, I'm assuming because this template tag adds in rel="tag" by default.
Does anyone have a solution to this?