The output value for “src” is empty.
I changed the way to array:
<?php $image = get_field('sixth_image'); if( !empty( $image ) ): ?> <div class="px-lg-4 bits-img-folder"> <img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" class="bits-img rounded border bg-white"> </div> <?php endif; ?>
And this solution works. But there is another problem I will write about in a moment.
By the way, does the display of photos differ if it belongs to a group?
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!
© 2022 Advanced Custom Fields.