Wordpress WP RSS
</section>[code]<section>
<h2
gdsggdsclass="caps">LATEST hfdhhfd[/code]HEADLINES</h2>
<div class="headline"> <?php
include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
$feed = fetch_rss('http://feeds.finance.yahoo.com/rss/2.0/headline?s=yhoo&region=US&lang=en-US'); // specify feed url
$items = array_slice($feed->items, 0, 3); // specify first and last item
?>
<?php if (!empty($items)) : ?>
<?php foreach ($items as $item) :
$createDate = new DateTime($item[pubdate]);
?>
<a target="_blank" href="<?php echo $item['link']; ?>"><h3><?php echo $createDate->format('d M Y'); ?></h3>
<p><?php echo $item['title']; ?></p></a>
<?php endforeach; ?>
<?php endif; ?>
<span>View All</span>
</div>