Modifying FeedBurner Plugin

This blog uses the excellent FeedBurner plugin. It is very good at its job, but there is one disadvantage. We lose all the individual feeds that WordPress generates per category or author as all feeds get redirected to the single FeedBurner feed.

I have modified the plugin for this blog by entering

&& !is_category() && !is_author() && !is_page()

inside the if check in the function ol_feed_redirect. It checks if the requested object is a category or author or a WordPress page. If so, it does not redirect the feed to FeedBurner.

The if statement is now

if ( is_feed() && $feed != 'comments-rss2' && 
     !is_single() && 
     $wp->query_vars['category_name'] == '' && 
     ($withcomments != 1) && 
     trim($feedburner_settings['feedburner_url']) != '' && 
     !is_category() && !is_author() && !is_page() )

I have used a similar concept in a project I am working on. Complete Wellbeing is a monthly magazine and the feed for its companion web site now returns all articles of the latest issue, unless feed is requested for a category or an author.

Discussion [Participate or Link]

  1. Patrix said:

    I tried it and it gave me an error. I’m quite wary of fiddling with the plugin files. Can you provide the edited version of the file? I’ve been looking for something like this for DesiPundit.

  2. Excluding Categories from your Feed while using Feedburner said:

    [...] exclusion problem remained unresolved as well. Until of course, Abhijit Nagouda from iface thoughts modified the Feedburner Replacement Plugin to offer category or author feeds while using Feedburner [download the modified plugin here; change [...]

  3. Upgrade FeedSmith | iface thoughts said:

    [...] Amit Agarwal informs us that FeedBurner has upgraded the FeedSmith plugin for WordPress to plug a potential security vulenrability, which means that it is an required update. The upgrade is really simple. Even if you are using the older version, just disable it, delete the older file, upload the new one, enable it and you are good to do. If you do not want to redirect your category or author feeds to FeedBurner, you will have to redo the hack. [...]

  4. FeedSmith para Wordpres actualizado - Carrero Bitácora de los Hermanos Carrero, David Carrero Fernández-Baillo y Jaime Carrero Fernández-Baillo. said:

    [...] FeedBurner ha actualizado FeedSmith (v2.3), el plugin para WordPress, para corregir un potencial problema de seguridad, por lo que si usas este interesante módulo debes actualizar. La actualización es realmente simple, solo tienes que desactivar el plugin, borrar la versión antigua, subir la nueva y volver a activarlo en tu blog. Recuerda que si no quieres redireccionar tus feeds de categorías y autores a FeedBurner pues hacer uso de este hack. [...]

  5. Welcome to Hell--Enjoy Your Margarita! | DeadRooster.com said:

    [...] bloggers may want to keep some of the feeds separate. If that’s you, there is a hack I found by Abhijit Nadgouda that might do the [...]

  6. Jodie said:

    I’m quite pleased with the inofmraiotn in this one. TY!

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.



Abhijit Nadgouda
iface Consulting
+91 9819820312
My bookmarks


This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.