How to Disable RSS Feed on WordPress Website

Prem Tiwari - - Code Snippets, WordPress Snippets

Someone has asked me a question “How to Disable RSS Feed on WordPress website” so that anyone can’t see the RSS feed of the site. Instead of RSS feed, he wants to display the custom message “No feed available, please visit the "".

How to Disable RSS Feed on WordPress Website

Open your functions.php file from current activated theme’s folders and copy paste below code at the end of the file.

After adding the above code inside in your functions.php file, it will display the below message and link to redirect homepage.


Apart from this WordPress also generates the RSS feeds link inside your page head like the below screenshot. You can go one step further and remove these RSS feed links from your pages HTML code.


Copy the below code into your functions.php file to remove the RSS feed links from your page.

Hope this tutorial helped you, do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.