How to merge/mix/combine RSS feeds

One problem I faced on my multi-language blog setup - it has different feeds for each language. Multi-language plugin WPML which I use does not have feature to mix feeds into one. I like my subscribers to see one common feed which is merged for all languages and leave possibility to subscribe to one language also. I setup simple solution using pure PHP. I did research several times about it and found very few information.

RSS merge for WordPress

Very few plugins exists for WordPress and they do not work with recent 3.X versions. Unfortunately.

Yahoo pipes

Yahoo pipes is a very flexible and feature rich tool for managing RSS feeds. It is possible fetch, merge, split, filter for any RSS source. It has nice graphical interface for all this. But I think it is a little but overkill for my two feeds.

PHP Solution for mixing RSS feeds

I did not want to bother with PHP coding for such a simple task. But if to compare actual time for coding it is far less then trying different plugins and research. So I found somewhere on the Internet these two nice libraries:
  • magpierss - for fetching feeds
  • feedcreator.class.php - for publishing feeds
With a small PHP glue between them I created simple script for merging several RSS feeds into one. Below is simple script that does the job. You can download full package with libraries included below in the end of post.
PHP CODE
Download RSS feed mixer/combiner. Unpack and change the Setup part of the script.

WordPress plugin

Want to see this feature as a WordPress plugin?  Vote below...

Your Email

Optional message

 

7 comments

  1. Thanks for posting this. I got this to work, however for each entry in the new feed only displays the post Title and date. The content/excerpt is missing.

    here is the feed url:
    michaeltchao.com/rss/full.php

    and they are fetching the feeds from the following:

    michaeltchao.tumblr.com/rss/
    blog.michaeltchao.com/feed/

    any suggestions?

  2. Yeah, I just did not bother with other fields, because title and content was quite enough for me.

    You may check and fix the code include other fields as well, I would update this post with your modifications.

    Do you use with WordPress or just standalone ?

  3. I am looking for the same- title and content.

    for the site (michaeltchao.com) with the combined feed, i am using wordpress.

    and blog.michaeltchao.com is with wordpress as well.

  4. Hi buddy

    I am trying add the below two feeds.

    ‘http://www.amazon.com/rss/new-releases/kitchen/?tag=sioril-20’,
    ‘http://www.amazon.com/rss/new-releases/music/?tag=sioril-20’

    After using given script I am getting feed like this
    http://www.clownova.com/rss/full.php

    In this I could not able to find ‘?tag=sioril-20’.

    Can you please help me in this. How can i make ‘?tag=sioril-20’ available in full.php .

  5. Hello,

    I can run the script, but the descriptions are lost in the output stream. Any idea?

  6. 5.0 out of 5 starsI Found My Thrill~I grew up listening to these odleis from our local radio station on a little transistor, (sister) luckily that my dad bought me in his travels, and my mom unplugged it from my ear

Leave a Reply

Your email address will not be published.