Home › Forums › Add-ons › Repeater Field › Can't show repeater fields
Hello, I am a newbie with ACF so sorry if I am asking something stupid. I am programming a weekly workout schedule and I can’t figure out why I get no result on my page even if I posted 2 workouts in my backend.
It’s like is not finding anything.
I’ll enclose screenshots and the ACF export if you want to test it.
This is the php:
<div class="row">
<div class="columns small-10 medium-10 large-10">
<?php if(have_rows('allenamento')) :?>
<?php while(have_rows('allenamento')) : the_row();?>
<div class="card effect8">
<div class="card-divider">
<h4><?php the_sub_field('giorno')?></h4>
</div>
<div class="card-section">
<?php if(get_field('tipo_allenamento') == 'individuale'):?>
<ul class="tabs" data-active-collapse="true" data-tabs id="collapsing-tabs">
<li class="tabs-title is-active">
<a href="#panel1c" aria-selected="true" class="color-black">Michele</a>
</li>
<li class="tabs-title">
<a href="#panel2c" class="color-black">Erika</a>
</li>
</ul>
<div class="tabs-content" data-tabs-content="collapsing-tabs">
<div class="tabs-panel is-active" id="panel1c">
<table>
<thead>
<tr>
<th>Esercizio</th>
<th>Ripetizioni</th>
<th>Descrizione</th>
<th>Riposo <?php the_field('riposo_michele')?>-sec</th>
<th>Round <?php the_field('round_michele')?></th>
</tr>
</thead>
<tbody>
<?php if(have_rows('lista_esercizi_michele')): ?>
<?php while(have_rows('lista_esercizi_michele')): the_row();?>
<tr>
<td><?php the_sub_field('ripetizioni')?></td>
<td><?php the_sub_field('esercizio')?></td>
<td><?php the_sub_field('descrizione_esercizio')?></td>
</tr>
<?php endwhile; ?>
<?php endif;?>
</tbody>
</table>
</div>
</div>
<div class="tabs-content" data-tabs-content="collapsing-tabs">
<div class="tabs-panel is-active" id="panel2c">
<table>
<thead>
<tr>
<th>Esercizio</th>
<th>Ripetizioni</th>
<th>Descrizione</th>
<th>Riposo <?php the_field('riposo_erika')?>-sec</th>
<th>Round <?php the_field('round_erika')?></th>
</tr>
</thead>
<tbody>
<?php if(have_rows('lista_esercizi_erika')): ?>
<?php while(have_rows('lista_esercizi_erika')): the_row();?>
<tr>
<td><?php the_sub_field('ripetizioni_erika')?></td>
<td><?php the_sub_field('esercizio_erika')?></td>
<td><?php the_sub_field('descrizione_esercizio_erika')?></td>
</tr>
<?php endwhile; ?>
<?php endif;?>
</tbody>
</table>
</div>
</div>
<?php else:?>
<table>
<thead>
<tr>
<th>Esercizio</th>
<th>Ripetizioni</th>
<th>Descrizione</th>
<th>Riposo <?php the_field('riposo_condiviso')?>-sec</th>
<th>Round <?php the_field('round_condiviso')?></th>
</tr>
</thead>
<tbody>
<?php if(have_rows('lista_esercizi_condivisi')): ?>
<?php while(have_rows('lista_esercizi_condivisi')): the_row();?>
<tr>
<td><?php the_sub_field('ripetizioni_condivise')?></td>
<td><?php the_sub_field('esercizio_condiviso')?></td>
<td><?php the_sub_field('descrizione_esercizio_condiviso')?></td>
</tr>
<?php endwhile; ?>
<?php endif;?>
</tbody>
</table>
<?php endif;?>
</div>
</div>
<?php endwhile;?>
<?php endif;?>
</div>
</div>
You must be logged in to reply to this topic.
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 wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG
— Advanced Custom Fields (@wp_acf) March 16, 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.