No Following the_tags Without Hacking Core Files
-
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘No Following the_tags Without Hacking Core Files’ is closed to new replies.