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="">
</a>
<div class="titreProjet" data-aos-duration="900" data-aos-once="true">
<?php echo $titleProject;?>
</div>
<div data-aos-delay="300" data-aos-duration="700" data-aos-easing="ease-in-out"
data-aos-once="true" class="trait">
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp
— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.