Attempt to fix RSS parser

This commit is contained in:
Mohamad Damaj 2023-07-12 22:44:19 +03:00
parent 8fcce83abd
commit 0c4e6cc158
1 changed files with 3 additions and 0 deletions

View File

@ -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