|
Faced problem to display RSS Feed items in reverse order using the Simplepie script. The solution provided in the Simplepie documentation is disable the order of the item by date.
Solution in the documentation requires us to use the following code along with your script.
$feed->enable_order_by_date(false);
This did not seem to work for me. So the only solution i had was to use the PHP reverse function instead. So to those who wish to display your Simplepie feed in reverse order, you may use the following code where needed.
<?php foreach (array_reverse($feed->get_items()) as $item): ?>
Replace the code as needed and your feed should be in reversed order.
|