This question already has an answer here:
I have the following code for calling the images in the slider but no idea on how to get the alt tag. I tried varied methods but I could be missing something. Please help. Possibly I am missing this in calling the respective variables but no idea thereof.
foreach ( get_field('images') as $image ): ?> <div> <img src="<?php echo $image['image']['url']; ?>" width="90" alt="<?php echo $alt; ?>" /> </div> <?php endforeach;