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

What are the advantages and disadvantages of using add_theme_support('automatic-feed-links') in my functions.php file?

share|improve this question
up vote 6 down vote accepted

A long time ago WordPress did not put feed links into the head element automatically. Theme or plugin authors had to do that.

In 2009 automatic_feed_links() was introduced, a function that should be used in themes or plugins to let WordPress do the hard work.

One year later it was added to Twenty Ten, and it became a de facto standard.

Not much later add_theme_support() was implemented and the first function was deprecated in favor of this new super-function which is now part of the theme review guidelines.

But all this happens still to avoid conflicts with pre-2009 themes: WordPress does never create duplicate feed links, unless the author asks for that.

I have questioned this practice. This functionality is not about presentation, and old themes should not have such an impact on the current development. Chip Bennett brought the issue up in his latest discussion about the theme review guidelines.

I guess we can expect some progress here in the near future.

So the advantage is: you get feed links.
The disadvantage: you mix non-presentational functionality into the theme.

share|improve this answer

Hopefully someone will expand on this a bit more, but here goes:

add_theme_support('automatic-feed-links') in your functions.php file, adds code (<link rel="alternate"...) to the <head> of your pages which links to the relevant RSS feed for that pages content. This is generally preferred to add code like this in WordPress than to put it in manually. Having such a link provides an "alternate" format for the content on the page.

From: http://www.w3.org/QA/Tips/use-links

It gives the possibility to RSS Readers to find the Web site updates feed.

Googling about this myself, I share your frustration - it's difficult to find a good description of the pros/cons of including these links, and the relevant wordpress codex page is currently pretty weak.

share|improve this answer

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.