Support

Account

Home Forums General Issues How to link an image field to an external URL Reply To: How to link an image field to an external URL

  • Hi John,
    Thanks for your reply. So, that is what I am struggling with is the code on the front end. Not sure how to wrap the image field in the external URL field????

    <? How to link this image field to an External URL
    <?php
    $image = get_field(‘image’);
    if( !empty($image) ): ?>
    ” alt=”<?php echo $image[‘alt’]; ?>” />

    <?php endif; ?>

    ?>