interfacelab

Avatar

Feedburner WP Plugin Category Fix

I’ve patched the current Feedburner 2.3 plugin to support feedburner feeds for categories.

When you install the plugin and activate it, navigate to Settings -> Feedburner.

You should now see options for adding in URL’s for all of your category rss feeds.

Download here.

Note: The url for your feeds by category should be by name, eg:

http://interfacelab.com/feed?category_name=php

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...
  • Did this plugin break for anyone else after upgrading to WordPress 3?
  • Thanks I was wondering if this was the issue. For some reason, my feed for my podcast worked a couple times, then stopped. Feedburner says it's OK, but I can't ping it. That's the only issue I found. I'm hoping this will fix it all.
  • If you like to use this great plugin with your category slugs too, than you have to enhance the plugin again. replace the function ol_feed_redirect() in FeedBurner_FeedSmith_Plugin.php in Line 137, with the following lines:


    function ol_feed_redirect() {
    global $wp, $feedburner_settings, $feed, $withcomments;

    $category_name = $wp->query_vars['category_name'];
    $category_name = split("/", $category_name);
    $category_name = $category_name[count($category_name) - 1];


    if (is_feed() && $feed != 'comments-rss2' && !is_single() && $category_name == '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_url']) != '') {
    if (function_exists('status_header')) status_header( 302 );
    header("Location:" . trim($feedburner_settings['feedburner_url']));
    header("HTTP/1.1 302 Temporary Redirect");
    exit();
    }
    else if (is_feed() && $feed != 'comments-rss2' && !is_single() && $category_name != '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_category_'.$category_name]) != '') {
    if (function_exists('status_header')) status_header( 302 );
    header("Location:" . trim($feedburner_settings['feedburner_category_'.$category_name]));
    header("HTTP/1.1 302 Temporary Redirect");
    exit();
    }
    elseif (is_feed() && ($feed == 'comments-rss2' || $withcomments == 1) && trim($feedburner_settings['feedburner_comments_url']) != '') {
    if (function_exists('status_header')) status_header( 302 );
    header("Location:" . trim($feedburner_settings['feedburner_comments_url']));
    header("HTTP/1.1 302 Temporary Redirect");
    exit();
    }
    }
  • This looks like a great plugin. How might I hack it to work for author post feeds?

    On a multi-author blog, all author feeds redirect to the same base-feedburner feed; I need to be able to have each author have their own feed.

    Thanks in advance for the help!
  • Work perfect Thanks very good plugin
  • Narada
    Hi,

    This is great but I'd like to use /tag/foo/feed. Is this possible? Tagging is preferable to categorisation in my opinion. The latter is primitive and superceded. An interface where one can add a tag to feedburner feed mapping (instead of having a listing of all tags because there would be too many) would be very useful.

    Would really appreciate it.
  • This is great -- been looking for this solution for a LONG time to separate the feed for a podcast from the main blog. Thank you!
  • Not working for me.
    It's not redirecting, but it shows the category feed in the url, but the feed is all of the articles.

    Here is what my settings look like.

    FeedBurner settings:
    - original feed: http://www.evancourtney.com/?cat=212
    - feed address: http://feeds2.feedburner.com/ evancourtney/the1814

    new WP plugin settings:
    - first, normal feed : http://feeds2.feedburner.com/evancourtney
    - second, new category feed: http://feeds2.feedburner.com/evancourtney/the1814

    Any ideas?
  • Daisy
    This is a great plugin. I wonder, though, if it's possible to get it to work with sub-categories. It redirects properly if the sub category is called with "/category/child-category-slug/feed/" but not if it's called as "/category/parent-category-slug/child-category-slug/feed/"

    Is it possible to make it so the feed redirects using either slug?
  • iflyhigh
    I'll take a look at it sometime this week and see if I can get it to
    work.
  • Thanks for the plugin modification. It worked the way sparkletack describes it. :) Btw. I like the "rate up", "rate down" system. Is that achieved through a plugin too?
  • Brilliant idea - if only I could get it to work!

    Just to make sure I'm doing things right (the names have been deliberately genericized):

    FeedBurner settings:
    - original feed: http://www.my_domain.com/feed?category_name=php
    - feed address: http://feeds.feedburner.com/category_name

    new WP plugin settings:
    - first, normal feed: http://feeds.feedburner.com/sitename
    - second, new category feed: http://feeds.feedburner.com/category_name

    Am I on the right track, or have I screwed something up here?

    Thanks for any input ... and thanks again for fixing this plugin and putting it out there. You're a prince!
  • iflyhigh
    Yup that's the way you do it.

    You will have to create a new feedburner feed for every category you want to "burn".

    Let me know if you run into any issues, there might be some bugs in my patch, I've only used it on this blog and my poker blog.
  • Maybe this will make the issue clearer:

    After implementing the settings, when I attempt to subscribe to "http://www.my_domain.com/feed?category_name=php", FB still points the feedreader to "http://feeds.feedburner.com/sitename" (instead of my brand new "http://feeds.feedburner.com/category_name").

    Does that make sense?
  • The settings for the original FB feed (as outlined by Iflyhigh) didn't work for me.

    For anyone else who's had an issue similar to mine, try this:

    FeedBurner settings:
    - original feed: http://my_domain.com/category/category_name/feed
    - feed address: http://feeds.feedburner.com/category_name

    new WP plugin settings:
    - first, normal feed: http://feeds.feedburner.com/sitename
    - second, new category feed: http://feeds.feedburner.com/category_name

  • The issue that I've run into is that (much like Curley when he tries to think), nothing happens!

    What I mean is, the newly burned FeedBurner category feed pulls the *entire* feed, exactly like my original feed does. The single category limitation does not appear to be functioning.

    Any ideas?
  • thanks! but i cannot get this working. when I use the url for feed category (like in yout post), firefox shows error : Redirect loop. any tips?
  • iflyhigh
    Send me an email at jon.gilkison at gmail and we'll see if we can get it sorted out.
  • iflyhigh
    Hope you find it useful.
  • Thank you so much for this! I have been trying to figure this one out forever!
blog comments powered by Disqus