Link thumbnail to large image
For when you want to link the Featured image to its larger original image file.
- 1.Copy the HTML Markup and paste it into the Custom Markup field
- 2.Amend the image field, to wrap into the link, like this
$imageField$
- 3.Add the following code to the Markup -> Custom Markup Variables field
<?php
return [
'imageUrl'=>wp_get_attachment_image_url($_fields['imageFieldName'], 'full'),
];
- 4.Replace
imageFieldName
with the target image name.
Note: Choose Return Format -> Image ID for your ACF Image field, for this to work.
Last modified 1mo ago