Support

Account

Forum Replies Created

  • manage to fix it myself:

    <section class="features">
    <?php 
        if( have_rows('features', option) ): ?>
        <ul class="features__list swiper-wrapper">
        <?php while( have_rows('features','option') ): the_row();
        $image = get_sub_field('image'); 
        $title = get_sub_field('title');
        ?>
            <li class="features__item swiper-slide">
                <img class="features__image" src="<?php echo $image['url']; ?>" alt="<?php echo $title; ?>"
    				draggable="false" />
                <?php echo $title; ?>
            </li>
        <?php endwhile; ?>
        </ul>
    <?php endif; ?>
    </section>
  • AAAA Im going nuts.

    All i can see is :

    <section class="features">
    <ul class="features__list swiper-wrapper">
    <li class="features__item swiper-slide">
    <img class="features__image" src="" alt="" draggable="false">
    </li>
    </ul>
    </section>

    My field group is Feature, and repeater Features
    Do I missing something.

    <section class="features">
    <?php 
        if( have_rows('features', option) ): ?>
        <ul class="features__list swiper-wrapper">
        <?php while( have_rows('features','option') ): the_row(); ?>
            <li class="features__item swiper-slide">
                <img class="features__image" src="<?php $feature['image']; ?>" alt="<?php $feature['title']; ?>"
    				draggable="false" />
                <?php $feature('title'); ?>
            </li>
        <?php endwhile; ?>
        </ul>
    <?php endif; ?>
    </section>
  • Ok, i havent come to repeater yet, how does that works.

Viewing 3 posts - 1 through 3 (of 3 total)