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 do you wish you'd have known 5 years ago that you know now?

Don’t skimp on automation. If you can write code to do X, spend the extra 10% to totally automate and report on X. The smaller the team, the more critical...
Brian Ghidinelli (MotorsportReg.com)

Brian Ghidinelli
MotorsportReg.com

Any big clients on your list?

YouTube, MTV, Mint and Kayak are just a few of our “household name” clients. Four of the top ten Pages on Facebook are using PageLever right now...
David Turner (PageLever)

David Turner
PageLever

What is the biggest hurdle, personally, you have faced or are still facing?

Getting press for an Indian company is a bit harder. I think most bloggers favor startups from the US. Hiring product guys in India is a huge challenge since...
Sahil Parikh (DeskAway)

Sahil Parikh
DeskAway

How would you describe Founder2be in under 50 words?

Founder2be is the match.com for finding a co-founder....
Oliver Bremer (Founder2be)

Oliver Bremer
Founder2be