Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Thanks!

share|improve this question
add comment

2 Answers 2

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(); ?> " />
  <?php 
}
share|improve this answer
    
works great, thanks! –  pereyra Jul 3 '11 at 1:27
add comment

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
add comment

Your Answer

 
discard

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.