Make Tags Link NoFollow on WordPress

To make the links nofollow tag, you do not need the help of plugin. Use this simple code in which you want to display tags.

Tags :
<?php
$posttags = get_the_tags();
$count=0;
if ($posttags) {
foreach($posttags as $tag) {
$count++;
echo '<a href="'.get_tag_link($tag->term_id).'" rel="noffolow">'.$tag->name.'</a>, ';
if( $count >5 ) break;
}
}
?>

5 number of tag that you want to display.

Other alternative to make tag cloud nofollow

4 thoughts on “Make Tags Link NoFollow on WordPress”

  1. Great goods from you, man. Make Tags Link NoFollow on WordPress I have understand your stuff previous to and you are just extremely wonderful. I really like what you’ve acquired here, certainly like what you’re stating and the way in which you say it. You make it enjoyable and you still take care of to keep it sensible. I cant wait to read far more from you. This is actually a wonderful Make Tags Link NoFollow on WordPress informations.

    Reply

Leave a Comment