• Apparently this is something specific for newer versions of WordPress because the straight forward code use to be right in the header and I’ve done it before, but now it is gone and the only way I’ve found to remove it is by removing a little line of code

    <?php wp_head(); ?>

    But when you remove that, it removes a bunch of other mystery stuff also and is breaking a plugin I am using. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Depends on your theme and your version of WP.

    Prior to 3.0 something like this was usually (but not always in the theme’s header.php:

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

    In 3.0 that would still work, but you would add this in the theme’s functions.php:

    if ( function_exists( 'add_theme_support' ) )
        add_theme_support( 'automatic-feed-links' );

    Removing

    <?php wp_head(); ?>

    will break a bunch of stuff, I do not recommend it.

    Thread Starter alanchrishughes

    (@alanchrishughes)

    SO you are saying adding

    if ( function_exists( 'add_theme_support' ) )
        add_theme_support( 'automatic-feed-links' );

    to my functions file will remove the rss feeds from all pages? Because I just want it to be removed from a couple custom post types so I can manually ad the custom post types rss feeds and taxonomies.

    Thread Starter alanchrishughes

    (@alanchrishughes)

    I just discovered this overly complicated means of removing it and seems to be working.

    https://www.ads-software.com/support/topic/remove-feed-from-wp_head

    Actually, I was saying that those were two common ways to add feed links.

    If either existed, it would be easy to remove them.

    The solution you found will work, I was trying to see if we could go with an easier method.

    Sorry I was unclear.

    Thread Starter alanchrishughes

    (@alanchrishughes)

    Thanks for your help. The theme I am using, TwentyTen, doesn’t make it simple so I guess you have to use this screwy method to remove the links.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing RSS Feeds’ is closed to new replies.