loading
I currently have availability
logo

Hi, I'mKevin Shoffner

Disable Your WordPress RSS Feed

By default WordPress will include the popular RSS functionnality, which is great for most sites. But there are times when having RSS feeds may become a bit confusing for your visitors, so you can use this easy fix.

This code will totally disable RSS feeds (As well as other formats) from your site. Just paste the code into functions.php, and you’re done.




function cwc_disable_feed() {
wp_die( __('No feed available,please visit our homepage!') );
}
add_action('do_feed', 'cwc_disable_feed', 1);
add_action('do_feed_rdf', 'cwc_disable_feed', 1);
add_action('do_feed_rss', 'cwc_disable_feed', 1);
add_action('do_feed_rss2', 'cwc_disable_feed', 1);
add_action('do_feed_atom', 'cwc_disable_feed', 1);

Leave a Reply

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

%d bloggers like this: