Home › Forums › Add-ons › Gallery Field › Custom image size › Reply To: Custom image size
The same way your added the custom image URL to the image tag above it
<img src="<?php echo $image['sizes']['galleryImage']; ?>" alt="">
<a href="<?php echo $image['sizes']['OtheCustomImageSize']; ?>" class="project-caption"><span>+</span></a>
When in doubt, you can always output the entire image array to see what’s in it
echo '<pre>'; print_r($image); echo '</pre>';
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.