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

I've tried a number of solutions available on the internet, but none seem to work in WP 3.1.1.


share|improve this question
up vote 3 down vote accepted
remove_action('wp_head', 'feed_links', 2); 
add_action('wp_head', 'my_feed_links');

function my_feed_links() {
  if ( !current_theme_supports('automatic-feed-links') ) return;

  // post feed 
  <link rel="alternate" type="<?php echo feed_content_type(); ?>" 
        title="<?php printf(__('%1$s %2$s Feed'), get_bloginfo('name'), ' &raquo; '); ?>"
        href="<?php echo get_feed_link(); ?> " />
share|improve this answer
works great, thanks! – pereyra Jul 3 '11 at 1:27

Since WP version 3.0, feed links in the header are expressly enabled with this

 * Add default posts and comments RSS feed links to head
// add_theme_support( 'automatic-feed-links' );

Commenting out this 'add_theme_support' line (in your functions.php file) will remove /feed/ and /comments/feed/ links from your header.

Background information here: Automatic_Feed_Links

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.