Alt text not showing...
$images = get_post_meta(get_the_id(), 'vdw_gallery_id', true);
if( $images ): ?>
<ul>
<?php foreach( $images as $image ): ?>
<li>
<a href="<?php echo wp_get_attachment_image_url($image, 'large'); ?>">
<img src="<?php echo wp_get_attachment_image_url($image, 'medium'); ?>" alt="Alter TEXT" />
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
I try many ways but not getting how to echo alter text I create meta field for gallery.
I know wp_get_attachment_image_src this will show everything but I only need to echo "alt" text within loop.