How to make it work in single-XYZ.php files
-
Hi there,
The plug in works great in usual WP posts, however, it does not work in custom-built pages such as single-CPT.php and those built with custom queries etc.Is there a way to make it work for all images at every page?
To clarify, this is how I usually call images from ACF:
<div class="singleracesubblock"> <a href="<?php $image = get_field('medal_photo_2'); echo($image['sizes']['large']); ?>"> <img class="race_wiki_img" alt="" src="<?php $image = get_field('medal_photo_2'); echo($image['sizes']['large']); ?>" /> </a> </div>
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to make it work in single-XYZ.php files’ is closed to new replies.