Support

Account

Home Forums Add-ons Repeater Field Can't show repeater fields

Solved

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>
    
  • Solved never mind

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Can't show repeater fields’ is closed to new replies.