how to disable rss

How to Disable RSS Feeds in WordPress

If you don`t know, how to disable RSS feeds in WordPress, you picked the right article. Here you will find all the answers to the issue. At first, let’s try to figure out what for this function is created. Thanks to RSS feeds people are able to subscribe to their favorite posts of a blog. But if you are creating not luge static websites, you should (in most cases) turn off this function. Problem is that you can`t make it by default, you have to do it manually using one of two following methods.

Perhaps you will also be interested in our article on How to Convert HTML to WordPress.

Technique 1: Use a Plugin

This technique is recommended for inexperienced people because almost everyone can use it. Turn off RSS using the very short and at the same time detailed algorithm of actions:

  1. Set the proper plugin — Disable Feeds.
  2. Enable it.
  3. Done! From now the system you have installed will redirect an audience of your site every time when people will request a subscription.

Pay attention, you can set up the installed system, using a few configurations. Just open menu «Settings» and configure them. After installation, the plugin will divert visitors to the similar content on the website after they try to subscribe (e.g. instead of category feed people will be directed to category page). On your will, the system will not do that, and just provide a page with an error.

how to turn off rss feeds
How to Disable RSS feeds in WordPress

Lastly, there is one functions left — not disconnection of the global RSS feed and comments feed. If you select this option, you will allow people to subscribe, but there will be absent some features, like an author and other.

Technique 2: Manual configuration

Are you relatively experienced? Then you have to learn, how to remove RSS feeds in a more mature way — manually by edition WordPress files! It is very simple. Just add a code provided below to theme`s functions php file (another variant site-specific module).

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);


Hope, now you can remove RSS feed using two methods. Good luck with new discoveries!

turn off rss

1 Star2 Stars3 Stars4 Stars5 Stars (5.00 / 5, votes: 1)
Comments are closed.