Title: Link Parameters
Last modified: August 18, 2016

---

# Link Parameters

 *  [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/)
 * Is there any way to make WP add rel=”nofollow” to get_links_list?

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299207)
 * 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.
 *  [schestowitz](https://wordpress.org/support/users/schestowitz/)
 * (@schestowitz)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299217)
 * 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’.
 *  Thread Starter [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299269)
 * 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?
 *  [masquerade](https://wordpress.org/support/users/masquerade/)
 * (@masquerade)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299270)
 * 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.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299271)
 * Roy – do you have links to examples ? It’s a new one on me.
 *  Thread Starter [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299273)
 * yeah, I know they still follow them just easier to say it how I did 😉
 *  Thread Starter [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299324)
 * bump for more info 🙂
 *  Thread Starter [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299351)
 * 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
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/link-parameters/#post-299352)
 * 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.
 *  Thread Starter [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/link-parameters/#post-299419)
 * 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?
 *  Thread Starter [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * (@sizzlechest)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/link-parameters/#post-299442)
 * bump for more info 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

 The topic ‘Link Parameters’ is closed to new replies.

 * 11 replies
 * 5 participants
 * Last reply from: [sizzlechest](https://wordpress.org/support/users/sizzlechest/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/link-parameters/#post-299442)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
