Date not displaying in RSS feed using Magpie

  • Unknown's avatar

    I finally got my page to display my WordPress posts but the date of the post doesn’t display. Any ideas? Here’s the page:

    http://www.viriditysoftware.com/index_rss.php

    And here’s the php:


    <?php include('magpie/rss_fetch.inc');

    error_reporting(E_ERROR);

    $rss = fetch_rss('http://viriditysoftware.wordpress.com/feed/atom/');
    if ($rss) {
    $items = array_slice($rss->items, 0, 5);
    foreach ($items as $item )
    { echo '<span style="list-style:none; line-height:9px">

  • <span class="date">'.$item['title'].' '.$item['author'].'
  • <img src="images/blogspacer.gif" height="9" width="230" border="0"></span>'; }
    }
    else
    {
    echo '<h2>Error:</h2><p>'.magpie_error().'</p>';
    }
    // Restore original error reporting value
    @ini_restore('error_reporting');
    ?>