Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/11/2013, 07:56
Avatar de AlejandroGalvez
AlejandroGalvez
 
Fecha de Ingreso: noviembre-2013
Mensajes: 189
Antigüedad: 10 años, 5 meses
Puntos: 49
Respuesta: inserción de titulo en imagenes de slider

Lo que deseas es poner TITLE al enlace <A> no a la imagen. La imagen <IMG> solo puede tener el atributo ALT, que será el texto a mostrar en caso de que ocurra un error al cargar la imagen. Por lo tanto tu problema se resuelve así:

Código PHP:
Ver original
  1. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
  2.     <?php the_post_thumbnail( 'featured-slideshow',array( 'alt' => the_title_attribute( array( 'echo ' => false), 'class' => 'slide_img', ) ); ?>
  3. </a>