• Resolved benrpalmer

    (@benrpalmer)


    Hi

    Thanks again for this great plugin. I’ve created a mix feed in Yahoo Pipes and the order that the items come out in the feed is very important. Is there a way to make hungry feed display the items in exactly the order Yahoo Pipes outputs them without re-ordering them at all?

    I tried order=”” and that didn’t seem to work.

    Thanks

    Ben

    http://wordpress.org/extend/plugins/hungryfeed/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Jason

    (@verysimple)

    if you don’t supply an order parameter then HungryFEED doesn’t do any sorting so it should show them in whatever order they’re returned by the feed. Have you looked at the rss output of the pipe to see what order they’re in?

    Thread Starter benrpalmer

    (@benrpalmer)

    Thanks for the reply but we are still having problems.

    Here is the feed we are trying to display

    http://pipes.yahoo.com/pipes/pipe.run?_id=cf46976918a9416caa68679baa0d82d7&_render=rss

    The items in the feed are not ordered by date but in a different order specified in Yahoo pipes. They display correctly in this order (not by date) when we view the feed in the Yahoo pipes output and in Chrome’s rss reader.

    Here is how it looks on our site.

    http://paidonlinewritingjobs.com/content/feed-test/

    As you can see the items on the page are ordered by date.

    The HTML on the page is:

    <p>[hungryfeed url=”http://pipes.yahoo.com/pipes/pipe.run?_id=cf46976918a9416caa68679baa0d82d7&_render=rss”%5D</p&gt;

    Do you know why this could be?

    Thanks a lot, I appreciate your time,

    Ben

    Plugin Contributor Jason

    (@verysimple)

    i verified what you said. i think it appears this is not totally expected since rss is a publishing format and wordpress seems to expect the items to be sorted by publish date. i did some experimenting and it looks unfortunately that wordpress does the sorting (via simplepie library). they provide a way to override the comparison function (which is using the php usort function) but it always wants to sort by some property. i tried just having the comparison function return 0 (equal) for all values, which technically should not sort but due to the way usort works, apparently it still does re-order elements in the array as it is going through the sort algorithm.

    I think as a workaround if there is any possibility that you can remove the publish date (use a blank value) that will tell simplepie not to sort at all. Another idea if pipes will let you fake the publish date to an order that you do want the items to appear.

    Plugin Contributor Jason

    (@verysimple)

    well just when i thought it wasn’t possible, i found a hidden setting. i just added hungryFEED version 1.5.6 which supports this parameter:

    order="none"

    this will tell hungryfeed not to mess with the order of the RSS items at all

    Thread Starter benrpalmer

    (@benrpalmer)

    Hi

    Thanks for that, can’t believe the level of support you provide for this plugin. I looked for a donation page on your website and found the link for SmileTrain.org so I’m going to look into that and make a donation.

    I upgraded to 1.5.6 and added the order=”none” paramater and it worked perfectly and hungry feed displayed the feed without any re-ordering. However when I refreshed the page again there were a lot of error messages at the top of the page saying,

    “Deprecated: Assigning the return value of new by reference is deprecated in /home/paidonli/public_html/content/wp-includes/class-simplepie.php on line 738”

    It displays about 50 of them at the top of the page.

    The items are still left unordered by hungry feed, which is great, but now there are all these error messages.

    Thanks again

    Ben

    Thread Starter benrpalmer

    (@benrpalmer)

    I just tried deactivating all the plugins on the site and reactivating them one by one to see what was causing the problem and it seems that it is being caused by Digital Access Live Links plugin because when every plugin (including hungry feed) is activated except for Digital Access Live Links, the error messages go away.

    However I’ve been using this plugin for about a year and the error messages only started occurring just after I upgraded to version 1.5.6 of Hungryfeed. You mentioned in your first response that the problem with the order of the rss items was to do with simplepie and the error messages mentions simplpie so do you think it could be related to the new version of hungryfeed?

    This page shows the error http://paidonlinewritingjobs.com/content/feed-test/ but it also shows up in the wordpress dashboard.

    Cheers

    Ben

    Thread Starter benrpalmer

    (@benrpalmer)

    Also apart from the wordpress admin area, the only pages where the error messages appear are the pages that have hungryfeed shortcode on them.

    Plugin Contributor Jason

    (@verysimple)

    hmm, i’ve been having trouble with overly eager error reporting in HungryFEED recently. For the moment you can solve it by going to HungryFEED settings and changing the error message template to this:

    <!-- {{error}} -->

    what that will do is make the error messages only appear in the html comments so the visitors won’t see them.

    i’ll have to see why hungryfeed is catching so many errors in other plugins, it’s kinda weird.

    great news about smiletrain – i think it’s a great cause!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: HungryFEED] How to not order items in feed at all’ is closed to new replies.