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