Saturday, July 2, 2022
HomeWordPress DevelopmentDisable RSS Feeds in WordPress

Disable RSS Feeds in WordPress


Do you need to disable RSS feeds in your WordPress web site?

RSS feeds permit customers to subscribe to your weblog posts. Nonetheless, you might need to flip off the RSS feeds when constructing small static web sites. By default, there is no such thing as a choice to take away RSS feeds in WordPress.

On this article, we’ll present you easy methods to disable RSS feeds in WordPress.

What are RSS Feeds and Why Disable Them?

RSS is a sort of internet feed that helps customers get real-time updates and content material out of your web site. RSS stands for Actually Easy Syndication or Wealthy Web site Abstract. It permits your readers to routinely get new content material in e-mail newsletters, RSS feed readers, and different units.

Whereas RSS feeds are helpful to your web site, WordPress can add a number of feeds which may not be helpful. As an illustration, there are taxonomy feeds, writer feeds, particular person publish and web page feeds, and extra.

You’ll be able to disable these RSS feeds and save search engines like google and yahoo like Google from exhausting their web site crawl quota. This manner, search engine bots gained’t crawl feeds that aren’t related to your web site and as a substitute index extra vital pages.

Plus, disabling RSS feeds is sensible should you’re not working a WordPress weblog, however utilizing WordPress extra as a CMS (content material administration system) or easy web site builder. It’s additionally good for eCommerce shops that don’t have a weblog.

At WPBeginner, we have now disabled a number of of the RSS feeds to assist enhance our search engine marketing rankings.

That being mentioned, let’s see how one can disable RSS feeds in WordPress.

Technique 1: Disable RSS Feeds Utilizing a Plugin

The simplest approach of disabling RSS feeds is through the use of a WordPress plugin like All in One search engine marketing (AIOSEO).

It’s the finest search engine marketing plugin for WordPress and allows you to optimize your web site for search engines like google and yahoo with out requiring technical data or hiring an skilled.

All In One SEO - AIOSEO

This methodology is simpler and is beneficial for inexperienced persons. We’ll use the AIOSEO Lite model for this tutorial as a result of it means that you can disable RSS feeds in WordPress.

Nonetheless, if you wish to enhance your search rankings, then you should utilize the AIOSEO Professional model to unlock extra highly effective options like XML sitemaps and redirection supervisor.

The very first thing you have to do is set up and activate the AIOSEO plugin. For extra particulars, see our step-by-step information on easy methods to set up a WordPress plugin.

Upon activation, you’ll see the AIOSEO setup wizard. Merely click on the ‘Let’s Get Began’ button and comply with the onscreen directions. For extra particulars, please see our information on easy methods to arrange All in One search engine marketing in WordPress.

Click let's get started AIOSEO setup wizard

Subsequent, you possibly can go to All in One search engine marketing » Search Look out of your WordPress dashboard and head to the ‘Superior’ tab.

After that, you possibly can scroll to the ‘Crawl Cleanup’ possibility and click on the toggle to allow it.

Go to AIOSEO advanced settings in search appearance

When you’ve enabled the Crawl Cleanup possibility, merely scroll all the way down to the RSS feeds you need to disable.

We advocate maintaining the World RSS Feed enabled as a result of it permits your subscribed customers to get the most recent updates. Disabling this may imply individuals gained’t be capable of subscribe to your web site, which might damage your WordPress search engine marketing.

Disable RSS feeds

Then again, you possibly can disable different sorts of RSS feeds.

For instance, you possibly can change off RSS feeds for authors, search, attachments, taxonomy, and extra.

Save changes to RSS feed

Don’t neglect to click on the ‘Save Adjustments’ button whenever you’re accomplished.

Technique 2: Manually Disable RSS Feeds in WordPress

One other approach of disabling RSS feeds in WordPress is by including code to your web site theme’s features.php file.

This methodology requires you to edit WordPress recordsdata, and you should utilize this methodology if you’re comfy pasting snippets from internet into WordPress.

Notice: We don’t advocate enhancing the features.php file instantly in your web site as a result of the slightest mistake can break your web site.

It’s also possible to add this code in a site-specific plugin or in a code snippets plugin:

perform wpb_disable_feed() {
wp_die( __('No feed obtainable,please go to 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);

As soon as the code is uploaded in your WordPress internet hosting server, you possibly can attempt to request any RSS feed web page.

To examine, you possibly can enter https://instance.com/feed/ URL in your browser. Simply be sure to switch ‘instance.com’ together with your web site URL.

Preview of disabled RSS feed

We hope this text helped you learn to disable RSS feeds in WordPress. You might also need to see our information on WooCommerce made easy and easy methods to begin a podcast utilizing WordPress.

If you happen to appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. It’s also possible to discover us on Twitter and Fb.

The publish Disable RSS Feeds in WordPress first appeared on WPBeginner.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments