M
M
msdoc112021-08-31 14:02:57
WordPress
msdoc11, 2021-08-31 14:02:57

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;
?>


How to pass image size to it by type: thumbnail, medium, medium_large, large.
Now, according to the standard, the full size of images is displayed.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question