How to Disable RSS Feeds in WordPress

Do you wish to have to disable RSS feeds for your WordPress web site? RSS feeds permit customers to subscribe to your weblog posts. However when development small static internet sites, it’s your decision to flip off the RSS feeds. By default, there is not any possibility to take away RSS feeds in WordPress. In this newsletter, we can display you the way to disable RSS feeds in WordPress.

Method 1: Disable RSS Feeds Using a Plugin

This approach is more uncomplicated and is really useful for newbies.

First factor you wish to have to do is set up and turn on the Disable Feeds plugin. For extra main points, see our step-by-step information on how to set up a WordPress plugin.

The plugin works out of the field and it’s going to get started redirecting customers to your web page once they request an RSS feed.

There are a couple of settings to be had for the plugin. You want to consult with Settings » Reading web page to configure them.

Disable Feeds plugin settings

By default, the plugin will check out to redirect customers to comparable content material for your web site once they request a feed. For instance, customers soliciting for a class feed will probably be redirected to class web page. Users making an attempt to get entry to customized put up sort RSS feed will probably be redirected to the customized put up sort archive.

You can alternate this conduct and display customers a 404 error web page.

You too can choose no longer to disable the worldwide RSS feed and feedback feed. This will permit customers to nonetheless subscribe to your RSS feed, however there will probably be no person class, writer, or put up remark feeds.

Don’t disregard to click on at the save adjustments button to retailer your settings.

Method 2: Manually Disable RSS Feeds in WordPress

This approach calls for you edit WordPress recordsdata. You can use this system if you’re relaxed pasting snippets from internet into WordPress.

Simply upload this code to your theme’s purposes.php document or a site-specific plugin.

serve as wpb_disable_feed() {
wp_die( __('No feed to be had,please consult with 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);

This code merely returns an error web page when any person requests an RSS feed.

Feeds disabled error page in WordPress

We hope this newsletter helped you find out how to disable RSS feeds in WordPress. You may additionally need to see our listing of 15 most disturbing issues about WordPress and the way to repair them.

If you loved this newsletter, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can in finding us on Twitter and Facebook.

Recent Articles

Charge Your Laptop Without a Charger in 5 Ways

Forgetting your laptop charger is a pretty common thing. We all have been there and all of...

Mobile-Only Bank versus Traditional Banks, Which one is for you?

Transactions over the internet are nothing new, online money transfer has been a part of our lives...

5 Reasons Behind The Slow Performance of Your iPhone

iPhone is a rather fast device, famous for its high level of performance. Most iPhone users define...

5 Apps to Use During Pregnancy for Android Users

Human birth is often described as the most beautiful phenomenon on the planet, but it could be equally as painful for the...

4 Best Apps to Teach Children to Read and Write at Home

Writing and reading are the two most basic skills that are taught to a kid. Though basic...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here