Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Disable RSS Feeds in WordPress

Do you want to disable RSS feeds on your WordPress site? RSS feeds allow users to subscribe to your blog posts. However when building small static websites, you may want to turn off the RSS feeds. By default, there is no option to remove RSS feeds in WordPress. In this article, we will show you how to disable RSS feeds in WordPress.

Disable RSS Feeds in WordPress

Method 1: Disable RSS Feeds Using a Plugin

This method is easier and is recommended for beginners.

First thing you need to do is install and activate the Disable Feeds plugin. For more details, see our step by step guide on how to install a WordPress plugin.

The plugin works out of the box and it will start redirecting users to your website when they request an RSS feed.

There are a few settings available for the plugin. You need to visit Settings » Reading page to configure them.

Disable Feeds plugin settings

By default, the plugin will try to redirect users to related content on your site when they request a feed. For example, users requesting a category feed will be redirected to category page. Users trying to access custom post type RSS feed will be redirected to the custom post type archive.

You can change this behavior and show users a 404 error page.

You can also select not to disable the global RSS feed and comments feed. This will allow users to still subscribe to your RSS feed, but there will be no individual category, author, or post comment feeds.

Don’t forget to click on the save changes button to store your settings.

Method 2: Manually Disable RSS Feeds in WordPress

This method requires you edit WordPress files. You can use this method if you are comfortable pasting snippets from web into WordPress.

Simply add this code to your theme’s functions.php file or a site-specific plugin.

function wpb_disable_feed() {
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );

add_action('do_feed', 'wpb_disable_feed', 1);
add_action('do_feed_rdf', 'wpb_disable_feed', 1);
add_action('do_feed_rss', 'wpb_disable_feed', 1);
add_action('do_feed_rss2', 'wpb_disable_feed', 1);
add_action('do_feed_atom', 'wpb_disable_feed', 1);
add_action('do_feed_rss2_comments', 'wpb_disable_feed', 1);
add_action('do_feed_atom_comments', 'wpb_disable_feed', 1);

This code simply returns an error page when someone requests an RSS feed.

Feeds disabled error page in WordPress

We hope this article helped you learn how to disable RSS feeds in WordPress. You may also want to see our list of 15 most annoying things about WordPress and how to fix them.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

17 CommentsLeave a Reply

  1. Hi.. Team
    Helpfull Article
    after installing the RSS feed disabled plugin, Whether or not articles will appear in Google News

      • I do not want anyone to take the content of the website from the RSS feed. I want to stop the RSS feed for the third party website.

        My website is also in Google News. I want to give my RSS feed To Google News. But not other third Party websites.

        Please Guide me How to Stop RSS Feed For 3rd party Websites

        • We do not have a recommended method for that kind of limitation at the moment.

  2. After having pasted the code in my functions.php, nothing happens. I still get a page saying “You do not have an RSS reader installed”. Are there other ways to remove the RSS feed, I am trying to minimize the use of plugins on my site.

    • You may want to ensure you cleared any caching in your browser/hosting provider to ensure you’re not viewing a cached page.


  3. HI

    Can you tell me about WordPress adding “feed” to the end of some of my urls that show up as 404 errors?


    I’ve been redirecting them but don’t know whether that’s necessary or not?

    Does this even have anything to do with RSS? And do you know how to stop it from happening?

    Thanks for your website, I don’t know where I would be without it.

  4. after disabling feed annd removing link rel of feed in my view source ive set an 500 response code in my google webmaster,,

  5. thant a great artical some one are feeded my artical then with your help i disabled my sited feed thanks you very much.

  6. I fisrt used to plugin to disable RSS feed. But the RSS link still appeared on BP Wall, so I simply add a css trick in me theme style file : .feed{display:none;}. Done!

  7. Does removing RSS access have any effect on rankings?
    or does this simply prevent people taking content via rss methods…


    • Does temporarily disabling my RSS feed delete my database of current subscribers? I am trying to post an article and backdate it, so I don’t want it to be sent out via RSS.

  8. The function is pretty neat and helpful.

    The function does not allow WordPress to add any information to the RSS .php files.. instead it re-writes it.

    I advise anyone to install the plugin and to add the function into functions.php of your theme file.

    The plugin removes the generate HTML source code, you will get rid of 2 useless lines.

  9. Thanks for sharing this! It worked great with one exception: when I add ‘/?feed’ to the end of the root domain, it is still calling a listing page showing the posts that I am trying to make inaccessible via the built-in feeds.

    I’ve tried refreshing my permalinks but that didn’t make a difference. Is there some other rule I need to add to the functions file (in a child theme in case that matters, btw) to address this, or maybe I can disallow it from the .htaccess file?

  10. My comments get published as posts which end up in my main RSS feed. Any idea on how to fix this? Ive read it may be a setting but so far we cant find it.

  11. Hi there! nice post!!!

    I love the functions.php code, but I’m using buddypress and the code dont disable the activity feed, someting like:

    How could I disable this?

    Thanks in advanced and regards from Spain.

Leave a Reply to Debbie Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.