How to Disable WordPress RSS Feed

Best WordPress Hosting

WordPress is a popular blogging platform used by millions of websites globally. I personally use WordPress for publishing my blogs and other websites. WordPress also supports RSS feed and allows users to subscribe notifications for all latest updates. Your blog readers can subscribe to get emails for fresh content. But, WordPress RSS Feed is not good for all kinds of websites. So, there can be few reasons why a person can think of disabling WordPress Feed.

Also Read: WordPress.org vs WordPress.com

By default, WordPress generates all kinds of RSS feeds. The link format is below.

Along with these feeds, WordPress also generates RSS feeds for Categories and tags.

WordPress Disable RSS Feed

You can disable the WordPress RSS feed either by using the plugin or code. In this article, I will explain both ways.

  • Disable RSS Feed with Plugin
  • Disable RSS Feed with Code

Disable RSS Feed with Plugin

The easiest way is to use Plugin and disable the RSS feed. Install Disable Feeds Plugin on your WordPress based website. This plugin disables all RSS/Atom feeds of your WordPress website. It also disables BuddyPress group feeds and bbPress forum feeds if you are using any of these.

Disable WordPress RSS Feed

By default, it redirects feed request to the corresponding HTML page. For example, if you request for category feed, it will redirect to category archive page. You can change this setting from Settings -> Reading. You will see the new section saying Disable Feeds Plugin.

Also see: How to optimize WordPress Images

Disable RSS Feed with Code

If you know how to code and are comfortable with changing the code, you can try this way. If you do anything wrong, it will show the White screen in place of your website. So, do only if you know how to do it.

Now open the functions.php file and add the following code.

When someone tries to access the feed after adding this code, he will see the message, “No feed available, please visit the homepage.” You can change the message in the above code if you want to show a different message. The above code will also remove the feed links from the header.

Final Words

Feed is an important part of WordPress. If you are using it for the blog, the feed is important for you. But, there can be many kinds of websites where you do not wish to allow other people to know when you are updating your website. In those cases, you can disable the RSS feed of your WordPress website.

I have explained both ways to disable the RSS feed. You can use any of the given ways. Do not forget to share your views on this.

advertisement

About The Author

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Receive fresh web design resources and SEO tips in your email by our weekly newsletter

You have Successfully Subscribed!