[Solved] How do I take an RSS feed from wordpress.com and add the newest post of the feed to another website? [closed]


Magpie RSS is your friend. I use it a lot to grab the most recent entry via RSS an show it on another webpage. I’ve only used it with self-hosted WordPress blogs, but since it’s based on the RSS feed I see no reason why it wouldn’t work from wordpress.com as well.

An example from their website:

require_once 'rss_fetch.inc';

$url="http://magpie.sf.net/samples/imc.1-0.rdf";
$rss = fetch_rss($url);

echo "Site: ", $rss->channel['title'], "<br>";
foreach ($rss->items as $item ) {
    $title = $itemHow do I take an RSS feed from wordpress.com and add the newest post of the feed to another website? [closed];
    $url   = $itemhttps://stackoverflow.com/questions/3129937/how-do-i-take-an-rss-feed-from-wordpress-com-and-add-the-newest-post-of-the-feed;
    echo "<a href=$url>$title</a></li><br>";
}

2

solved How do I take an RSS feed from wordpress.com and add the newest post of the feed to another website? [closed]