Hello,
I use in my repeater “categorie_home” a taxonomy (product_cat) “category).
I can’t display it to show the title and a specific field. I select in a page the categories that I want to display.
<?php if( have_rows('categorie_home') ): ?>
<div id="listprojects">
<?php while ( have_rows('categorie_home') ) : the_row(); ?>
<div class="item">
<?php
$terms = get_sub_field('categorie');
if( $terms ): ?>
<ul>
<?php foreach( $terms as $term ): ?>
<li>
<h2><?php echo esc_html( $term->name ); ?></h2>
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>