WordPress.org

Ready to get started?Download WordPress

Forums

nofollow on links inserted by PHP? (3 posts)

  1. mcfadden
    Member
    Posted 6 years ago #

    I want to make the links in my posts nofollow. Like the read more link, the category links, and the edit post link. They are inserted with php functions like these:

    edit_post_link()
    comments_popup_link()

    Where can I find these functions in the code so that I can add rel="nofollow" or is there a better way to do this?

    Thank you many times in advance. =)

  2. ibnuasad
    Member
    Posted 6 years ago #

    I think I have the plugin that you've been looking for. It's called Nofollow Links in Posts

    The plugin allows you to add nofollow to links in posts within a specified category :)

  3. Zack Katz
    Member
    Posted 5 years ago #

    @mcfadded - I have written a functions.php file that has the nofollow comments_popup_link() you are looking for: WordPress SEO functions.

    Don't worry about nofollowing edit_post_link(): Google will never see it. The function only shows up to users who are logged in and have editing access levels.

Topic Closed

This topic has been closed to new replies.

About this Topic