Share:

  • Facebook
  • Hacker News

Follow:

  • Twitter
  • Facebook
  • RSS
Chris Cardell

Disable RSS in WordPress

WordPress doesn’t come with the ability to turn off RSS. There are no really easy ways to completely switch off or remove your RSS feeds in WordPress for private or semi-private blogs. You could delete the php files themselves in wp-includes, but you’ll have to do this everytime you upgrade. Here is a better way to solve the problem:

Visit “Appearance” and “Editor” in your admin menu. Edit the “Theme Functions” file (functions.php). After the opening

remove_action('do_feed_rss2', 'do_feed_rss2', 10, 1);
remove_action('do_feed_rss', 'do_feed_rss', 10, 1);
remove_action('do_feed_rdf', 'do_feed_rdf', 10, 1);
remove_action('do_feed_atom', 'do_feed_atom', 10, 1);

If you change the theme you’re using, you will need to do the same for your new theme. You may also want to remove references to these now non-existent feeds in your themes header file.

This entry was posted on Thursday, March 3rd, 2011 at 2:17 am GMT. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



Quick links

Print | Email this story

You might also like

    None Found
  • http://www.fillthefunnel.com Miles Austin

    Why?

Most Popular


Recent Articles



What are you most excited about at the moment?

Watching the company grow from three people working from my living room to more than sixty people from twelve nations is amazing. Another...
Alexander Piutti (GameGenetics)

Alexander Piutti
GameGenetics

What advantages does oDesk have over its competitors?

oDesk is the world’s largest and fastest-growing online work company — we are actually larger than all other online work sites combined. We have achieved these results...
Gary Swart (oDesk)

Gary Swart
oDesk

How long did it take to put together TeamGantt?

We worked Saturday mornings for about 6 months before we put out a beta product. We then worked another 6 months before we launched the paid...
Nathan Gilmore (TeamGantt)

Nathan Gilmore
TeamGantt

You doubled your user base from 250,000 to 500,000 in just 6 months (May-December 2012), which marketing channels have you used to grow so quickly?

Most importantly we’ve invested in the product so that our users want to spread the word about Wave. You also can’t underestimate the power of free...
Kirk Simpson (Wave)

Kirk Simpson
Wave