<?php
$image = get_field('profile_image');
$size = 'medium'; // (thumbnail, medium, large, full or custom size)
if($image) : ?>
<?php echo wp_get_attachment_image( $image, $size );?>
<?php elseif( !$image ): ?>
<img src="image-url"/>
<?php endif ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.