channel->item)) {
foreach ($xml->channel as $feed) {
//loop through items for display; number of items determined by $limit variable above
for ($i=0; $i<$limit; $i++) {
//get media file
$attrs = $feed->item[$i]->enclosure->attributes();
$mediaFile = $attrs['url'];
//get blog post link
$postLink = $feed->item[$i]->link;
?>