Stefan Brüggemann, Luis Camnitzer and Philippe Decrauzat
[insert_php]
$foto = ‘fair-zona-maco-2012-‘;
$nombre = ‘Maco Mexico 2012’;
$i = 1;
$open = true;
while($open == true){
$i = ($i < 10)? '0'.$i:$i; $fichero = 'wp-content/uploads/2017/11/'.$foto.$i.'.jpg'; $open == false; if(file_exists($fichero)){ echo '
‘;
}else{
$open = false;
}
$i++;
}
[/insert_php]