How to make Post links do follow in wordpress

Do not confuse yourself ,  I am not going to suggest you any plugin to make a post link do follow?  I am sure you have searched a lot of website and find a lots of silly plugins to make comment author or their comments links do follow. Yes most of the time we try to make give back something to our valuable commentator.


Some times, we need to even reward our guest bloggers for their valuable work as they render their best to us. I think they also need a do-follow links. Most of the time, your wordpress templates and famous wordpress plugins, by default create all  external links nofollow and all the internal links do-follow.

A very simple tricks can make all your nofollow links into do follow link. follow the steps-

Open your post in your editor in HTML mode ( do not turn it into visual mode)

  • Locate the link , you want to make do follow
  • add rel=”dofollow”   like this < a rel=”dofollow”  “” target=”_black” title=”reliable , accurate, secure technological blogging tips”> rsa technologies </a>
  • Save your work

Now check your work. it looks very fine if you check these links using some sort of  extensions or plugins. BUT whenever you check the same using it’s source code you are little bit troubled .Becouse it display both nofollow and do-follow both. Confused !!!!!!!!How your link may behave like a no-follow and do-follow  at the same time.  Your customer and Guest Blogger will never ever accept this solution

So where it the solution? Solution lies in the core of wordpress, BUT, I would never suggest you to hack your wordpress core. Another perfect simple solution

Open your wordpress function.php file and type the following code in this file

function strip_nofollow($text = '') {
return preg_replace_callback("/&lt;s*as+(.+?)&gt;/is", 'strip_nofollow_callback', $text); }

function strip_nofollow_callback($match) {
$attr = $match[1];
$attr = " $attr ";
$attr = preg_replace("/
/ix", " rel=$1$2$3$1", $attr);
$attr = preg_replace("/
/ix", '', $attr);
$attr = trim($attr);
return '&lt;a ' . $attr . '&gt;';
} add_filter('the_content', 'strip_nofollow', 15);

The above function does not make any changes in the core or in the wordpress database, it simply changes all the occurrence of nofollow tags into do-follow tags.

How do you like this dofollow hack to make post links dofollow, Be sure to share your experience with us.

Suggested Similar Articles

32 Brilliant Comments - Join Discussion Now!

  1. I want to know that is there is a plugin that makes only a particular link dofollow and rest nofollow?

  2. I found a plugin that can make WordPress links no-follow, But is this practice safe (Making all the external links nofollow)?

    • rakesh says:

      Hi Sudhanshu, The plugin is not the solution of the problem, We discussed in the article. To make a single link do-follow, You have to follow our method.

  3. Thanks Rakesh for the tips!! I prefer your way over the plugins.I just need this for some..not all post.

    • rakesh says:

      Hi Sabrina, Welcome on my blog, happy to know that you find these tips useful. Keep in touch :)

    • rakesh says:

      Hi Sabrina Dix, As you like this post to make post links do-follow. Hope you would definatly love my latest post “9 WordPress mistakes that would not let your WordPress site to rank”. Thanks for stopping by, Keep in touch :)

  4. Hey, this is nice article thank’s to sharing this.

  5. Thanks <3 for sharing with us…

    Really needs it for my new blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>