WordPress default RSS widget – make not to display entries in chronological order

Posted by chavakiran on

WordPress RSS feed widget displays feed entries in chronological order.

But some times it is better to display the entries in the order they appear in feed.

For example Popular books of the week.

To do so, make below changes to core wordpress.

Filename = feed.php

function = fetch_feed()

before $feed->init add below line:

$feed->enable_order_by_date(false)

reference: http://simplepie.org/wiki/reference/simplepie/enable_order_by_date

 

ps: It is bad idea to change core wordpress. Until you find a plugin it is a quick fix.

This site uses Akismet to reduce spam. Learn how your comment data is processed.