Last active
July 10, 2016 00:13
-
-
Save tjhole/fcb85844161e5293b051 to your computer and use it in GitHub Desktop.
ACF: Image
This file contains hidden or 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 | |
$attachment_id = get_sub_field('image'); | |
$size = "full"; // (thumbnail, medium, large, full or custom size) | |
$image_url = wp_get_attachment_image_src( $attachment_id, $size ); | |
?> | |
<?php echo $image_url[0]; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment