September 25, 2018

District News

 

<?php if(function_exists(‘fetch_feed’)) {

 

        include_once(ABSPATH . WPINC . ‘/feed.php’);  $feed = fetch_feed('http://wcesd33-il.schoolloop.com/cms/rss?d=x&group_id=1274682996956&types=&include_subgroups=t&return_url=1316628680640/');  

        $limit = $feed->get_item_quantity(7); $items = $feed->get_items(0, $limit);  

}

if ($limit == 0) echo ‘<div>The feed is either empty or unavailable.</div>’;

else foreach ($items as $item) : ?>

 

<div>

        <a href=”<?php echo $item->get_permalink(); ?>”

          title=”<?php echo $item->get_date(‘j F Y @ g:i a’); ?>”>

               <?php echo $item->get_title(); ?>

        </a>

</div>

<div>

        <?php echo substr($item->get_description(), 0, 200); ?>

        <span>[…]</span>

</div>

 

<?php endforeach; ?>