Home › Forums › Add-ons › Repeater Field › How I can display a relationship filed into a repater field? › Reply To: How I can display a relationship filed into a repater field?
<?php if( have_rows('event') ): ?>
<div class="locations">
<?php while( have_rows('event') ): the_row(); ?>
<div class="location" style="border-bottom:1px solid #fff;">
<?php the_sub_field('location'); //relationship field ERRO ?>
<?php if( have_rows('date_event') ): ?>
<ul class="staff-members">
<?php while( have_rows('date_event') ): the_row(); ?>
<li><?php the_sub_field('date'); //repeater field OK ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<?php endwhile; ?>
</div>
<?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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.