I am trying to show a link on a portfolio post only if there is an image in the ACF image field called ‘wall_image_1’. If no image has been set, I want to not show the link. I am using ACF PRO through the Avada theme (7.0)
The following code is showing the link whether or not the image field ‘wall_image_1’ is blank or not.
$view_on_wall = get_field(‘wall_image_1’, false, false);
if ( !empty($view_on_wall) ): ?>
<h5>View on Wall</h5>
<?php endif; ?>