Home Forums Add-ons Repeater Field Repeater field IMG alt no work


Repeater field IMG alt no work

  • Hello guys,
    ich habe a repeater field with images;

    $produkt = get_field('produkte-startseite');
    <div class="row start-products">
        <?php foreach ($produkt as $produkte): ?>
            <a href="<?php echo $produkte['url']; ?>">
                <div class="col3">
                    <img src="<?php echo $produkte['bild']['sizes']['large']; ?>"
                         alt="<?php echo $produkte['alt']; ?>">
                    <h3><?php echo $produkte['produkt-name']; ?></h3>
                    <div class="overlay"></div>
        <?php endforeach; ?>

    The problem is that I do not receive any alt text. But if I do var_dump it gives me as a result 4 arrays with 4 alt text.
    Someone could help me?

Viewing 1 post (of 1 total)

The topic ‘Repeater field IMG alt no work’ is closed to new replies.