I am attempting to show mrss feeds offered by http://allhiphop.com/feed/ as wordpress posts inside a custom page template. The title along with a description appear for every feed but I am not able to exhibit any images, videos etc.. within the page. Below may be the code that I am using.
<?php include_once(ABSPATH.WPINC.'/rss.php'); $feed = fetch_rss('http://allhiphop.com/feed'); $items = array_slice($feed->items, 0, 10); ?> <?php if (!empty($items)) : ?> <?php foreach ($items as $item) : ?> <h2><a href="<?php echo $item['link']; ?>"> <?php echo $item['title']; ?></a></h2> <p><?php echo $item['description']; ?></p> <?php endforeach; ?> <?php endif; ?>
I am unsure whether I ought to use fetch_rss or fetch_feed. I understand I am not carrying this out right. If a person can guide me within the right direction, that might be great. Thanks.
Well this is old, but anyway whether it helps somebody.
Generate an income did is defined the look in description. That's, within the description I've got a
<img> tag which links towards the image. See http://www.applegrew.com/util/if.xml for instance.