From 0c4e6cc15888552b9984881f37a572b9f25b8174 Mon Sep 17 00:00:00 2001 From: Mohamad Damaj Date: Wed, 12 Jul 2023 22:44:19 +0300 Subject: [PATCH] Attempt to fix RSS parser --- site/blog/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/blog/index.php b/site/blog/index.php index 3f9050b..b549f00 100644 --- a/site/blog/index.php +++ b/site/blog/index.php @@ -24,6 +24,9 @@ $xml = simplexml_load_file($feed); // Get all items as an array $items = iterator_to_array($xml->channel->item); +// Reverse the order of the items so that the latest post is displayed first +$items = array_reverse($items); + // Loop through the items and display them foreach ($items as $item) { // Add a box around the article