20 items max for merged feeds?

Hi Team,

I’ve bought the self-hosted version from feed creator and i’ve changed max_items option in the config file to 300. But when I merge 4 feeds, feed creator still limit the output to 20 items and sometimes a little more…
How can I get all the items from feeds, plz? Thx for your help

[EDIT] I’m using the lastest version available (2.2.1) and here are the parameters used:

mergefeeds.php?url[]=https%3A%2F%2Fwww.20minutes.fr%2Frss%2Factu-france.xml&url[]=https%3A%2F%2Fstorage.googleapis.com%2Frss-lci%2Frss.xml&url[]=https%3A%2F%2Fwww.francetvinfo.fr%2Ftitres.rss&url[]=https%3A%2F%2Fwww.lejdd.fr%2Fvar%2Fexports%2Frss.xml&max=300&order=date

Hi there, sorry for slow response.

Thanks for reporting this issue. The mergefeeds.php endpoint doesn’t appear to be using the max items number as it should. We’ll fix and document this better in the next version. In the meantime, you can try the following solution.

  1. Open mergefeeds.php in a text editor

  2. Find the following section:

    if (count($urls) === 1) {
        $feed->set_item_limit(20);
    } elseif (count($urls) === 2) {
        $feed->set_item_limit(10);
    } else {
        $feed->set_item_limit(5);
    }
    

    Change it to:

    if (count($urls) === 1) {
        $feed->set_item_limit($max);
    } elseif (count($urls) === 2) {
        $feed->set_item_limit($max);
    } else {
        $feed->set_item_limit($max);
    }
    
  3. Save and upload the file to your server

  4. Try your request again to see if you get more items returned.

Let us know if you have any trouble.

Pretty cool! It’s working like a charm now :slight_smile:

Thanx for your help

1 Like