Hi, I'm very new to PHP. The first little project I've assigned to myself was to create a barebones mobile version of my wordpress site.
My plan of attack was to use the website's RSS feed to attain the Title, Description and the Images and then I would be free to format them however I wished.
So far I've had no trouble extracting the Title and Descriptions from the RSS but am stumped when it comes to the images.
Here is what I have so far:
define('FEED_URL', 'http://feeds.feedburner.com/HFtT');
<?php
$xml = simplexml_load_file(FEED_URL);
foreach ($xml->channel->item as $item)
{
echo '<br> <h1>' . $item->title . '</h1> <br>' . $item->description;
}
?>