gleenk
7/5/2017 - 8:39 AM

WordPress ALT immagine in evidenza post thumbnail

WordPress ALT immagine in evidenza post thumbnail

$imgID  = get_post_thumbnail_id($post->ID);
 	$img    = wp_get_attachment_image_src($imgID,'full', false, ''); 
 	$imgAlt = get_post_meta($imgID,'_wp_attachment_image_alt', true); ?>
 	<img src="<?php echo $img[0]; ?>"alt="<?php echo $imgAlt; ?>" />