Skip to content

Instantly share code, notes, and snippets.

@FreePhoenix888
Created July 23, 2020 05:53
Show Gist options
  • Save FreePhoenix888/ee382159e848ebfc7d4db0807126c7c4 to your computer and use it in GitHub Desktop.
Save FreePhoenix888/ee382159e848ebfc7d4db0807126c7c4 to your computer and use it in GitHub Desktop.
Image array php
<?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