I'm currently using a PHP call to achieve this, but the problem is that I have to specify the number of episodes to display, and every time a new episode is released I have to increment that number.
Is there any way that I can display a list of podcast episodes without having to update the code every time a new episode is released?
Here is the code I'm currently using:
-
<?php
- item[$i]->link; ?>"><?php echo $blog->item[$i]->title; ?>
error_reporting(0);
$url = "PODCAST URL";
$xml = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA);
echo $xml;
if ($xml == "")
{
echo "Feeds are down, Try again later";
}
else
{
$blog = $xml->channel;
for($i=0; $i<10; $i++)
{
?>
<?php
}
}
?>