How to Disable RSS Feeds in WordPress


Want to disable RSS feeds on your WordPress site?

RSS feeds allow users to subscribe to your blog posts. However, you can disable RSS feeds when creating small static websites. By default, there is no option to delete RSS feeds in WordPress.

In this article, we will show you how to disable RSS feeds in WordPress.

How to Disable RSS Feeds in WordPress

What are RSS feeds and why disable them?

RSS is a type of web feed that helps users get real-time updates and content from your website. RSS stands for Really Simple Syndication or Rich Site Summary. It allows your readers to automatically get new content in email newsletters, RSS feed readers and other devices.

Although RSS feeds are useful for your website, WordPress can add several feeds that might not be useful. For example, there are taxonomy feeds, author feeds, post and individual page feeds, and more.

You can disable these RSS feeds and prevent search engines like Google from exhausting their website crawl quota. This way, search engine crawlers won’t crawl feeds that aren’t relevant to your site and will instead index the most important pages.

Also, disabling RSS feeds makes sense if you’re not using a WordPress blog, but using WordPress more like a CMS (content management system) or just a website builder. It’s also perfect for e-commerce stores that don’t have a blog.

At WPBeginner, we have disabled several RSS feeds to improve our SEO ranking.

That being said, let’s see how you can disable RSS feeds in WordPress.

Method 1: Disable RSS Feeds Using a Plugin

The easiest way to disable RSS feeds is to use a WordPress plugin like All-in-one SEO (AIOSEO).

It is the best SEO plugin for WordPress and allows you to optimize your site for search engines without requiring technical knowledge or hiring an expert.

All-in-one SEO - AIOSEO

This method is easier and is recommended for beginners. We will use the AIOSEO Lite Version for this tutorial as it allows you to disable RSS feeds in WordPress.

However, if you want to improve your search ranking, you can use the AIOSEO Pro Version to unlock more powerful features like XML sitemaps and redirect manager.

The first thing to do is to install and activate the AIOSEO plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you will see the AIOSEO setup wizard. Just click the “Let’s Get Started” button and follow the on-screen instructions. For more details, please see our guide on setting up all-in-one SEO in WordPress.

Click to start the AIOSEO Setup Wizard

Then you can go to All-in-One SEO ยป Search Appearance from your WordPress dashboard and head to the “Advanced” tab.

After that, you can scroll down to the “Crawl Cleanup” option and click on the toggle to enable it.

Go to AIOSEO advanced settings in the search appearance

Once you’ve enabled the Crawl Cleanup option, simply scroll down to the RSS feeds you want to disable.

We recommend keeping the global RSS feed enabled as it allows your subscribed users to get the latest updates. Disabling this would mean that people will not be able to subscribe to your website, which could hurt your WordPress SEO.

Disable RSS feeds

On the other hand, you can disable other types of RSS feeds.

For example, you can disable RSS feeds for authors, search, attachments, taxonomy, etc.

Save changes to RSS feed

Don’t forget to click the “Save Changes” button when you’re done.

Method 2: Manually Disable RSS Feeds in WordPress

Another way to disable RSS feeds in WordPress is to add code to your website theme’s functions.php file.

This method requires you to edit WordPress files, and you can use this method if you are comfortable pasting snippets from the web into WordPress.

To note: We do not recommend that you modify the functions.php file directly on your site because the slightest error can break your site.

You can also add this code in a site-specific plugin or snippets 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);

Once the code is uploaded to your WordPress hosting server, you can try requesting any RSS feed page.

To check, you can enter https://example.com/feed/ URL in your browser. Just be sure to replace “example.com” with your website URL.

RSS feed preview disabled

We hope this article helped you learn how to disable RSS feeds in WordPress. You might also want to check out our guide to WooCommerce made simple and how to start a podcast with WordPress.

If you liked this article, subscribe to our Youtube channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Disable RSS Feeds in WordPress first appeared on WPBeginner.



Leave a Comment

Your email address will not be published.