getting image alt text via ACF plugin in WordPress [closed]
You need to set your ACF field to return the image object instead of the URL. You can then use the following code to retrieve the image and alt text: <?php $slideshow_image = get_field(‘slideshow_image’); // Check for alt text – if there isn’t any, use the image title $alt = ($slideshow_image[‘alt’]?$slideshow_image[‘alt’]:$slideshow_image[‘title’]); // Return full size … Read more