-
-
Save markusvonplunkett/894051874c4673d9342cf5c3fdfd267c to your computer and use it in GitHub Desktop.
Old way of getting an alt tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$body_image_1 = wp_get_attachment_image_src( get_field('body_image_1'), 'medium_landscape_1' ); | |
$body_image_2 = wp_get_attachment_image_src( get_field('body_image_2'), 'medium_landscape_1' ); | |
<img src="<?php echo $body_image_1[0]; ?>" alt="<?php echo $body_image_1['alt']; ?>" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment