Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="excerpt_image">
- <?php if(get_field('excerpt_image')): ?>
- <?php
- $attachment_id = get_field('excerpt_image');
- $size = "thumbnail"; // (thumbnail, medium, large, full or custom size)
- $image = wp_get_attachment_image_src( $attachment_id, $size );
- ?>
- <img src="<?php echo $image[0]; ?>" />
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement