¿así?
Código PHP:
else { echo <<<END "<a href=[$imagen1]><img src="http://www.actualidadconsolas.com/wp-content/themes/GamerAC/scripts/timthumb.php?src=[$imagen1]&h=150&w=150&zc=1&q=100&cropfrom=center" align="left" class="alignnone size-thumbnail galeria" height="150" width="150"></a>"; <a href=[$imagen2]><img src="http://www.actualidadconsolas.com/wp-content/themes/GamerAC/scripts/timthumb.php?src=[$imagen2]&h=150&w=150&zc=1&q=100&cropfrom=center" align="left" class="alignnone size-thumbnail galeria" height="150" width="150"></a>"; <a href=[$imagen3]><img src="http://www.actualidadconsolas.com/wp-content/themes/GamerAC/scripts/timthumb.php?src=[$imagen3]&h=150&w=150&zc=1&q=100&cropfrom=center" align="left" class="alignnone size-thumbnail galeria" height="150" width="150"></a>"; <a href=[$imagen4]><img src="http://www.actualidadconsolas.com/wp-content/themes/GamerAC/scripts/timthumb.php?src=[$imagen4]&h=150&w=150&zc=1&q=100&cropfrom=center" align="left" class="alignnone size-thumbnail galeria" height="150" width="150"></a>"; <a href=[$imagen5]><img src="http://www.actualidadconsolas.com/wp-content/themes/GamerAC/scripts/timthumb.php?src=[$imagen5]&h=150&w=150&zc=1&q=100&cropfrom=center" align="left" class="alignnone size-thumbnail galeria" height="150" width="150"></a>"; END; }
}
?>