Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/06/2010, 08:42
codig0
 
Fecha de Ingreso: septiembre-2008
Ubicación: Lanzarote, Canarias
Mensajes: 486
Antigüedad: 15 años, 8 meses
Puntos: 41
Respuesta: llamar imagenes del post en loop

Si son imágenes subidas por el upload al añadir la entrada, puedes hacerlo así:

Código:
if ($images = get_children(array(
 'post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'numberposts' => -1,
 'post_mime_type' => 'image',
))) :

foreach( $images as $image ) :
$imagen_grande = wp_get_attachment_image_src($image->ID, "large");
$imagen_peque = wp_get_attachment_image_src($image->ID, "thumbnail");
$numero++;
echo $imagen_grande[0];
endforeach;
endif;