General Topics

How To Disable RSS Feeds From WordPress?

Do you like to know how to disable RSS feeds from WordPress blog? Before disabling RSS feeds we will suggest changing your mind about it. However, try to understand the benefits of it. RSS feeds tell to a visitor about the content of the blog and disable feeds may cause to break down visitors. It gives facility to subscribe site future posts after publishing a post an intimation send on subscribers emails. If you start a static site then disable RSS feeds from WordPress site are not bad thinking. You know WordPress is an open source platform and you can change on your end and there is no built-in option to disable RSS feeds from WordPress sites, so today we will tell you how to disable RSS feeds in WordPress.

1st Method: Disable RSS Feeds From WordPress Via Plugin

Disable RSS feeds from WordPress via a plugin is a suitable way for beginners, for enabling this feature on your WordPress site you need to install “Disable Feeds” plugin from the directory of WordPress.org. Just install this plugin and activate it after set up all visitors will redirect to given URL. See with an example, if someone requests to access SEO category on your WordPress site then he/ she will redirect to the relevant post or category. The plus point of this plugin is that it use relevancy.

Disable Feed Setting

Disable Feeds plugin also offers redirect option to 404, you can redirect site feeds to 404 error page also.

Just done a setting like shown in above images and hit save changes.

2nd Method: Manually Disable RSS Feeds From WordPress

The 2nd method manually disables RSS feeds from WordPress is that just copy the code and place in WordPress theme files. To disable RSS feeds from WordPress you need to access your function.php file.

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

After placement, the user who wants to see RSS feeds page will see the below error on their browser.

No RSS Feeds

We hope this article has helped you to disable RSS feeds from WordPress. Feeds are a better way to attract traffic to your website. Next depend on you. Don’t forget to subscribe our blog for latest posts via mail and follow us on Twitter.

Show More

Global Blurb Team

“Global Blurb since 2015” Global Blurb providing information about SEO, Beauty, Health & Fitness, Interior designing, Fashion and ways of earning online without investing a penny. The blog designed to share ideas about different topics.

Want to contribute