Much simpler than I thought:
$getUrl = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$html = "";
$url = "
https://yourwebsite.com/feed/";
$xml = simplexml_load_file($url);
if ($getUrl == "yourwebsite.com/")
{
for($i = 0; $i < 5; $i++){
$image = $xml->channel->item[$i]->children('media', True)->content->attributes();
$title = $xml->channel->item[$i]->title;
$link = $xml->channel->item[$i]->link;
$description = $xml->channel->item[$i]->description;
$pubDate = $xml->channel->item[$i]->pubDate;
$html .= "<img src='$image' alt='$title'>";
$html .= "<a href='$link'><h3>$title</h3></a>";
$html .= "$description";
$html .= "<br />$pubDate<hr />";
}
echo $html;}