The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End help with news feeds Reply To: help with news feeds


As far as plug-ins go I’m not sure if there are any for what you’re trying to achieve. I haven’t looked or done the research

Anyhow, if you need help parsing the RSS, you can do something like:

# This would come from the form request
# $request = $_GET["request"];
$request = 'Michigan%20Crime';

$rss_feed= implode(file(''.$request.'&output=rss'));
$xml = simplexml_load_string($rss_feed);
$json = json_encode($xml);
$rss= json_decode($json,TRUE);

foreach($rss["channel"]["item"] as $item) {
    // var_dump($item);
    echo '<h3><a href="'.$item["link"].'">'.$item["title"].'</a></h3>';