How to NoFollow The Post Author Link in WordPress

The post author link in WordPress is a do-follow link by default. If you want to no-follow the post author’s link in WordPress, here is a brief tutorial.

The link to author’s posts is shown using the php code <?php the_author_posts_link();?>. This shows the author name and links to the author page with a do-follow link. The following tutorial explains how you can modify the link and add the no-follow attribute to the same php code.

1. Open the FTP directory of your blog and download the wp-includes/author-template.php file.

2. Open the author-template.php file for editing with any HTML editor and search for “href”. Add rel=”nofollow” at appropriate places as shown below:

No follow the author link in WordPress3. There is a total of 4 links in the file and you can add the no-follow attribute in all of them. After you have added the no-follow attribute, upload the file back in the wp-includes directory.

That’s it. All the author posts link will now be no-followed through out your blog.(see example)

Email this article

Written by on Wednesday, January 20th, 2010

    Add Your Comment

    All Comments are Moderated.

    YOUR COMMENT

    About This Site

    Ampercent is a technology blog on computer tutorials, software guides, how to tricks and web tools. The blog is updated daily and written by two computer science students from India. Read More »

    Tip Us »

    Have a great tip which you want to share with fellow readers? Send in your ideas to tips@ampercent.com