Wordpress Post Content Links To Be "DoFollow" By Default While Few Post Links To Be "NoFollow"

by Dele
2 replies
Unusual that this site of mine unlike others, has "nofollow" attribute for all links in post content.

I added a script to the themes functions.php which converted post content links into "dofollow" as i require.

However, when i manually insert the "nofollow" attribute i.e rel="nofollow" into my blog text editor for a few links, it makes no difference, as the links remain "dofollow"

How can i have my blog post content links as "dofollow" by default, while having the ability to selectively render some links "nofollow", as i desire.

Thank you.
#content #default #dofollow #links #nofollow #post #wordpress
  • Profile picture of the author HJdev
    Can you post the script that you added to the themes functions.php?
    {{ DiscussionBoard.errors[9823916].message }}
    • Profile picture of the author Zenoth
      Because the code you added in your functions.php file probably grabs all the links in the post content before the content is displayed.

      You should probably edit that function you have added to allow you to have nofollow links inside post content in some situations.
      {{ DiscussionBoard.errors[9824209].message }}

Trending Topics