Home Forums Front-end Issues link in a picture of a repeater Reply To: link in a picture of a repeater

  • I solved my problem

    <?php if( have_rows('projets') ): ?>
                                    <?php while( have_rows('projets') ): the_row(); 
                                        $image = get_sub_field('image_projet');
                                        $titleProject = get_sub_field('type_et_titre_du_projet');
                                     <div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 cas justify-content-center">
                                        <a class="d-block w-100 a" href="projet_cap_sciences.php#projets">
                                            <img src="" alt="">
                                        <div class="titreProjet" data-aos-duration="900" data-aos-once="true">
                                            <?php echo $titleProject;?>
                                        <div data-aos-delay="300" data-aos-duration="700" data-aos-easing="ease-in-out"
                                        data-aos-once="true" class="trait">
                                    <?php endwhile; ?>
                                <?php endif; ?>