Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/07/2013, 23:28
alvaro0022
 
Fecha de Ingreso: octubre-2009
Ubicación: Santa Fe
Mensajes: 206
Antigüedad: 14 años, 6 meses
Puntos: 7
Respuesta: Mostrar el nombre de la primer imagen de un post

saludos nuevamente;

logre un avance;

Con el siguiente código pudo mostrar la url donde se encuentra la imagen (ej: http://www.???.com/wp-content/upload.../07/Desert.jpg)
Pero necesito solamente obtener el nombre de la imagen "Desierto.jpg"

Código PHP:
<?php 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");
echo 
$imagen_grande[0];
endforeach;
endif;

 
?>

Alguna idea?
__________________
Fondos de pantalla
Juegos Gratis