I explain, I have created a custom gallery with images and images from a repeater so that:
<?php
$gallery = get_field('gallery');
?>
<section class="start0">
<?php if ($gallery) : ?>
<div class="autoplay">
<?php foreach ($gallery as $item) : ?>
<div class="">
<?php if (!$item['optionen']): ?>
<img src="<?php echo $item['bild']['url']; ?>" alt="<?php echo $item['alt']; ?>" data-lity>
<?php else: ?>
<a href="<?php echo $item['video']; ?>" data-lity>
<img src="<?php echo $item['bild']['url']; ?>" alt="<?php echo $item['alt']; ?>"></a>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</section>
The problem is that he does not give me any results, when doing var_dump spits me the alt, but when I put that (as the acf website says, it does not shoot). Does anyone have an idea why? Thanks and best regards