As SimplePie's help files are worse than rubbish, I'm turning to you guys to help me out! I'm trying to get the blog post image to render in the rss feed that I'm fetching into my web site. The only help I've found is either two line inadequate or PhD level!! This is what I have, which is great - if I didn't want an image:
and
Can anyone offer a "simple(pie)" solution?
Code:
require_once('php/autoloader.php');
$feed = new SimplePie();
$feed->set_feed_url('[URL unfurl="true"]http://festivalgear.wordpress.com/');[/URL]
$feed->init();
$feed->handle_content_type();
and
Code:
<?php
foreach ($feed->get_items() as $item): ?>
<div class="item">
<h2><i><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></i></h2>
<p><span class="oddtext"><?php echo $item->get_description(); ?></span></p>
<p><span class="noddtext">sdggds</span><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></p>
<hr />
</div><?php
endforeach; ?>
Can anyone offer a "simple(pie)" solution?