Home › Forums › ACF PRO › Repeater field problem › Reply To: Repeater field problem
I tried putting it in row to draw a conclusion. Simply the content filled it out, and all the content below in the first image. However, in the second image, I left without filling the taxonomy, of course nothing will appear, but the content with the images of the gallery appears normally. Is it some taxonomy bug? I’m just finding problem with this code, above. You sent me the term_id | object should I create a while for this?
<?php $rows = get_field('actor');
if($rows){
echo '<ol class="people scroller">';
foreach($rows as $row){
echo '<li class="card"><a href='. $row['term_link'] .'><img width="138px" height="175px" class=" profile fade lazyautosizes lazyloaded" src=' . $row['image-profile'] . ' alt=' . $row['primeiro_nome'] . '> </a><p><a href='. $row['term_link'] .'>'. $row['primeiro_nome'] . ' ' . $row['ultimo_nome'] . '</a></p><p class="character"> ' . $row['personagem_atual'] . '</p></li>';
}
echo '</ol>';
}
?>
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’s Repeater field is a versatile solution for repeating content in #WordPress.
— Advanced Custom Fields (@wp_acf) December 29, 2022
What’s your favorite use case for the Repeater field?
What’s the weirdest thing you’ve ever used it for?
Let us know!👇
© 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.