WordPress.org

Ready to get started?Download WordPress

Forums

Link Parameters (12 posts)

  1. SizzleChest
    Member
    Posted 8 years ago #

    Is there any way to make WP add rel="nofollow" to get_links_list?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    wp-includes/links.php
    The very last function is the one above.

    Line 244 in that file is this:
    $output.= "<a href='$the_link'";
    There are only two href links and the other is a js link.

    I would try
    $output.= "<a rel="nofollow" href='$the_link'";
    but that is untested and I'm no coder.

  3. schestowitz
    Member
    Posted 8 years ago #

    If you want to rel="nofollow" all links belonging to a class in your blog, you can edit the main template (index.php) and add a stylesheet like nofollow.css, which has become popular among greedy 'practitioners'.

  4. SizzleChest
    Member
    Posted 8 years ago #

    i just want certain links to be nofollow. Like affiliate links/random crap that I don't want spiders to follow through on. How would I go about doing the css way?

  5. masquerade
    Member
    Posted 8 years ago #

    Spiders still follow links with the nofollow tag. The name is a misnomer, all the nofollow tag does is tells search engines not to give them PageRank or similar for that link.

  6. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Roy - do you have links to examples ? It's a new one on me.

  7. SizzleChest
    Member
    Posted 8 years ago #

    yeah, I know they still follow them just easier to say it how I did ;)

  8. SizzleChest
    Member
    Posted 8 years ago #

    bump for more info :)

  9. SizzleChest
    Member
    Posted 8 years ago #

    hey podz, is there a way to selectively do it the way you said? I just want certain links to be nofollow. The way you said will make all of them nofollow

  10. vkaryl
    Member
    Posted 8 years ago #

    Do all of the links you want to make "no-follow" have ANY parameter in common? If the answer to that question is "no", then you'll probably have to do it manually.

    If the answer is "yes", then you'll need a php coder to write an if statement probably.

  11. SizzleChest
    Member
    Posted 8 years ago #

    yes. They're under a certain category. so I can write an if in wp-includes/links.php that says if category = x then do rel="nofollow" correct?

  12. SizzleChest
    Member
    Posted 8 years ago #

    bump for more info :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.