WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I remove RSS feeds from being listed in the HTML source? Like I want to remove the following:

<link rel="alternate" type="application/rss+xml" href="foo.com">

I don't want to remove the RSS feeds by any means, just the automatic output in the theme.

share|improve this question

If the theme is a relatively modern one, find this line of code in the functions.php file and remove it:

add_theme_support( 'automatic-feed-links' );

If it's an older theme, then look in the header.php file for the code that adds those.

share|improve this answer
Or, if using a child Theme, call remove_theme_support( 'automatic-feed-links' ), in a function hooked into after_setup_theme, with a lower (bigger-number) priority than the Parent Theme's setup function. – Chip Bennett Aug 23 '11 at 1:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.