Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Bueltge

    (@bueltge)

    The items inside the feed have the order DESC, the newest item is on the last position. Maybe you reorder this feed in Pipis.

    Thread Starter mcollier

    (@mcollier)

    Hello Frank,

    I have reversed the sort order of my yahoo feed. It is now set to descending in the pipe. I am seeing no change in the displayed feed on my website. I believe I have also been able to clear the simplepie cache as well just to be sure.

    Thread Starter mcollier

    (@mcollier)

    Perhaps my issue is specific to my WordPress 3.7.1 install.

    My research has determined that the SimplePie class defaults to a reverse chronological order sort as documented here:
    https://simplepie.org/api/class-SimplePie.html

    enable_order_by_date( boolean $enable = true )

    I then determined that the SimplePie object is created in wp-includes/feed.php

    The parameters for the SimplePie object are specified in the function ‘fetch_feed’.

    I added:
    $feed->enable_order_by_date(false);

    My feed was immediately displayed in the desired chronological order.

    Now that I have made this code modification, changing the sort order in my yahoo pipe does in fact change the order displayed on my site.

    Plugin Author Frank Bueltge

    (@bueltge)

    Thanks for the feedback, intresting.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feed sorted by date’ is closed to new replies.