How to showcase multiple images in the RSSFeed?
We currenlty use the follwing piece of code which works well so showcase an image, however, we want to showcase 3 to 5 images (adjustable value)
if(@$item['image']) {
$image_url = str_replace('_thumbnail', '', $item['image']['url']); // remove '_thumbnail' from image URL
echo '<image>';
echo '<url>'.$image_url.'</url>', PHP_EOL;
echo '</image>', PHP_EOL;
}