Answer the question
In order to leave comments, you need to log in
How to pass image size to WP ACF?
Hello. There is a gallery output code
<?php
if( have_rows('gallery_single') ): ?>
<?php while ( have_rows('gallery_single') ) : the_row(); ?>
<li class="thumbnails__item px-2" role="button" tabindex="1">
<img src="<?php the_sub_field('gallery_single_photo'); ?>" alt="" class="mx-auto" width="100px">
</li>
<?php endwhile; ?>
<?php endif;
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question