RSS feed allows users to subscribe to your blog posts. Some users prefer to disable RSS feed on the blog posts. Like while building up small static websites you may want to keep it off. There is no default way to remove RSS feed in WordPress but in this article how it disable RSS feed will be explained.
Method 1: Disable RSS Feeds Using a Plugin
This is a straightforward method and is recommended for beginners.
First of all you need to install and activate the Disable feed plugin. This app works out of the box and 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.
By default, the users will be redirected to your content once they request an RSS 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 also change the 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 to edit the WordPress files. 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.
Simple enough this code will return an error page when someone requests an RSS feed.