Use FeedBurner without a plugin

Redirect your RSS Feed Without Using Plugins or Editing .htaccess

| 2 Comments

It is pretty common for bloggers to want to use FeedBurner to handle their RSS feeds, because of the additional benefits it offers, such as statistics, automatically adding AdSense ads to the feed and pinging services about your new content.

Traditionally, the advice has been to use the FD Feedburner Plugin, which does the trick just fine, don’t get me wrong. But as you should probably know by now, I prefer to handle such items with functions where possible. Because of the prevalence of people using the Feedburner plugin, it wasn’t easy to find too much information on this subject, but after doing some searching, I was able to nail down enough to put together my function which redirects all readers to my FeedBurner feed.

It would be a simpler function if not for the fact that you have to check whether the user-agent is FeedBurner. This is because you have to allow FeedBurner through to your site without being redirected, so that it can actually look at your content, while keeping the redirect in place for everyone else.

At any rate, without any further ado, here is the function, which I drew up with the help of Erik Shultz. Just drop it into your functions.php file and you’ll be set – just be sure to change the FeedBurner URL to that of your own feed!:

Categories: Code & Snippets | Permalink

What next?

Hire me

If you couldn't quite manage this yourself, find it too intimidating, or just don't have the time to do it, you can always hire Dave to do it. Please get in touch so that we can discuss your needs.

Leave a comment

If you have a question, update, or comment about the tutorial, please leave a comment. I try and respond to every comment, though it may take a few days, so please check back soon.

Let a WordPress Expert help you

Do you want to try this, but feel like you need a helping hand, in case something goes wrong? My service, The WP Butler, gives you access to WordPress expertise whenever you need it. Better yet, I'll keep your site backed up, updated and secure, so that you don't have to worry about it. It's all part of the service. Use coupon DIWW and save 15% on all plans.

Visit The WP Butler

Author:

Dave has been tinkering with WordPress for many years, and he now shares his WordPress knowledge here on Do It WIth WordPress to help others realise its impressive power. He can also be hired to help with your WordPress needs. Dave, who is British, is married to his best friend, Marti, with whom he has a beautiful daughter, Ellie. When he's not dabbling with WordPress, he's probably eating Triscuits or hummus, watching an indie film or British TV show, spending time with friends or family, or exploring the world.

2 Comments

  1. Hi Dave, thanks for this snippet. One question – are all WP feeds redirected to Feedburner? I mean tags, categories, and comments feed along with the main site feed?

    • Hi Josephine,

      No, this is only for the main feed. You can create extra feeds and send those to FeedBurner as well, but that would be a lot of manual work to create all of those feeds for every category, tag, author etc.

Leave a Reply