Created
April 16, 2014 07:03
-
-
Save Jursdotme/10820980 to your computer and use it in GitHub Desktop.
ACF Image Output
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 | |
// Setup Image data | |
$id = get_field('topbillede'); | |
$size = 'full'; // (thumbnail, medium, large, full or custom size) | |
$image_attributes = wp_get_attachment_image_src( $id, $size ); | |
?> | |
<img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo $image_attributes[2]; ?>"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment