Tips and tricks
Flash Backup PHP Code snipped
function readXML($arg, $type) { $i=0; $xml = simplexml_load_file($arg); if($type=='main'){ foreach($xml->children() as $child) { if($child->getName()=="item"){ echo "<h3>" . $child->title . "</h3>"; if($i==0) readXML('http://localhost/wordpress/?mode=xml&xmlfile=rotator.php&page=1', 'images'); $i++; } } } if($type=='images'){ $aux = ''; foreach($xml->children() as $child) { if($child->getName()=="item") { $aux = $aux . ''; } } $aux = $aux . ''; echo $aux; } } readXML("http://localhost/wordpress/?mode=xml", "main");
You just need to input this in the alternate content.
Extend this as you wish.