This is how you add rel=”nofollow” to tag links in the tag cloud using wp_tag_cloud().

Add it to your theme’s functions.php.

add_filter( 'wp_tag_cloud', 'no_follow_tag_cloud_links' );
function no_follow_tag_cloud_links( $return ) {
	$return = str_replace('<a', '<a rel="nofollow" ', $return );
	return $return;
}

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?