• I am trying to display alt tags on a ACF image field. the get_field(‘brand_image’); outputs https://cellucity.com/wp-content/uploads/2019/06/Energea-1280X610-1.jpg However the alt tag on the image in media uploads isn’t displaying. Please see my code below. I am on wordpress v 5.3.2

    <?php $imageID = get_field('brand_image'); ?>
    						<?php $image = wp_get_attachment_image_src( $imageID, 'full' ); ?>
    						<?php $alt_text = get_post_meta($imageID , '_wp_attachment_image_alt', true);  ?>
    						<img />" alt="<?php echo $alt_text; ?>" />
    • This topic was modified 6 years, 4 months ago by Jan Dembowski. Reason: Formatting

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘_wp_attachment_image_alt not displaying any data’ is closed to new replies.