Wordpress WP RSS
<section> <h2 class="caps">LATEST 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®ion=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> </section>