I had the same problem.
FYI, I figured out what is going on here, the plugin is using the feed functions of wordpress, and apparently the sort by date is default behavior, even if not specified.
if ( !is_wp_error( $rss ) ) {
if ($orderby == 'date' || $orderby == 'date_reverse') {
$rss->enable_order_by_date(false);
}
This is a hack, but it works. Line 61, $rss->enable_order_by_date(false), instead of true. The next update for the plugin should specify:
$rss->enable_order_by_date(false)
before it gets into the logic of setting it to true. This way, the output matches the rss.xml feed as displayed, instead of using the original post date.
Where I specifically had a problem was where a feed item was originally dated in March, but updated last month with new info and was now at the top of the rss feed (the publish date remained as March).
Once I changed the true to false, my local feed matched the remote feed perfectly.
Recommended future plugin code change:
$rss = fetch_feed( $urls );
$rss->enable_order_by_date(false); #<--set default behavior.
remove_filter( 'wp_feed_cache_transient_lifetime', 'wp_rss_retriever_cache' );
if ( !is_wp_error( $rss ) ) {
if ($orderby == 'date' || $orderby == 'date_reverse') {
$rss->enable_order_by_date(true);
}
Great plugin, five stars!!!
-
This reply was modified 5 years, 9 months ago by
perltechs.
-
This reply was modified 5 years, 9 months ago by
perltechs.
-
This reply was modified 5 years, 9 months ago by
perltechs.