This was just way too simple and I had to share. (or keep it for later use.)
<ul><?php
$post = new SimpleXMLElement('XXX_URL_HERE_XXX',NULL,TRUE);
for ($i=0; $i<5; $i++) {
print('<li><a href="'. $post->channel->item[$i]->link . '">' . $post->channel->item[$i]->title . '</a></li>');
}
?></ul>
Link to SimpleXMLElement page on php.net.
For trouble shooting, try var_dump($post->channel); etc.
(Disclaimer: I will not be responsible for what this does. I am a php hack and no expert… Use with your own risk, please.)
Related posts:
