Quote: foreach ($xml->channel->item as $item) {
if ($i == $params['limit'] ) {
break;
}
$_x['item'] [$i] ['title'] = (string) $item->title;
$_x['item'] [$i] ['link'] = (string) $item->link;
$_x['item'] [$i] ['pubDate'] = strtotime((string) $item->pubDate);
$_x['item'] [$i] ['description'] = (string) $item->description;
$_x['item'] [$i] ['category'] = (string) $item->category;
$i++;
}
if ($i == $params['limit'] ) {
break;
}
$_x['item'] [$i] ['title'] = (string) $item->title;
$_x['item'] [$i] ['link'] = (string) $item->link;
$_x['item'] [$i] ['pubDate'] = strtotime((string) $item->pubDate);
$_x['item'] [$i] ['description'] = (string) $item->description;
$_x['item'] [$i] ['category'] = (string) $item->category;
$i++;
}
How do you add an additional level so that the channel > image > url can be grabbed inside the channel section?
The way the feeder is now, it's only one level deep (inside the channel only).
updated by @jimmy: 10/24/18 09:27:27AM