[![How to Disable RSS Feeds in WordPress 1](https://coma.lv/wp-content/uploads/2024/11/dusable-rss.webp)](https://coma.lv/wp-content/uploads/2024/11/dusable-rss-1030x396.webp)

# How to Disable RSS Feeds in WordPress

Nov 7, 2024/by [Vadim Pavlovich](https://coma.lv/en/author/djcoma/)

[RSS feeds](https://coma.lv/2016/10/25/12-sovetov-kak-optimizirovat-vash-rss-feed-v-wordpress/) let users subscribe to your blog posts. However, they are not needed if you are building small sites. Moreover, RSS is used less and less actively, as most users prefer other ways of getting news and content. By default, WordPress has no option to remove RSS, but do not despair, because in this article we will tell you how it can be done.

## Method One: Remove RSS Feeds with a Plugin

This is the simplest and most recommended method for beginners. First you need to install and activate the [Disable Feeds](https://wordpress.org/plugins/disable-feeds-wp/) plugin. The plugin works without any fuss and will redirect users to your site every time they request an RSS feed.

There are two behavior options that can be configured on the Settings > Reading page.

![WordPress](https://coma.lv/wp-content/uploads/2025/10/Ekranuznemums-2025-10-02-053040.jpg)

By default the plugin will redirect users to your site every time they request a feed. For example, if users request the feed of a category page, they will be redirected to the category page itself. If you want, you can change this and set up a 404 error page to be displayed.

## Method Two: Disable Feeds in WordPress Manually

Just add this code to the functions.php file of your child theme or use a plugin for inserting custom code:

function wpb_disable_feed() { wp_die( __(&#039;No feed available,please visit our &lt;a href=&quot;&#039;. get_bloginfo(&#039;url&#039;) .&#039;&quot;&gt;homepage&lt;/a&gt;!&#039;) ); } add_action(&#039;do_feed&#039;, &#039;wpb_disable_feed&#039;, 1); add_action(&#039;do_feed_rdf&#039;, &#039;wpb_disable_feed&#039;, 1); add_action(&#039;do_feed_rss&#039;, &#039;wpb_disable_feed&#039;, 1); add_action(&#039;do_feed_rss2&#039;, &#039;wpb_disable_feed&#039;, 1); add_action(&#039;do_feed_atom&#039;, &#039;wpb_disable_feed&#039;, 1); add_action(&#039;do_feed_rss2_comments&#039;, &#039;wpb_disable_feed&#039;, 1); add_action(&#039;do_feed_atom_comments&#039;, &#039;wpb_disable_feed&#039;, 1);

This code simply returns an error page when someone requests an RSS feed.

---

*Our specialization is WordPress website development and maintenance. Contact us for a free consultation — [vadim@coma.lv](mailto:vadim@coma.lv), [+371 29394520](tel:+37129394520)*

---
