Created
July 23, 2020 05:53
-
-
Save FreePhoenix888/ee382159e848ebfc7d4db0807126c7c4 to your computer and use it in GitHub Desktop.
Image array php
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
<?php | |
image = get_field(""); | |
if (!empty(image)) : | |
?> | |
<img src="<?php echo image["url"] ?>" alt="<?php echo image["alt"] ?>" class=""> | |
<?php endif ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment