Home › Forums › ACF PRO › Only showing 2 of 3 items in Post_Object Repeater › Reply To: Only showing 2 of 3 items in Post_Object Repeater
You have a couple issues
if( get_field('home_or_on_tour', 'option') == 'tour' ):
// do this before calling have_rows()
// calling get_field on a repeater after using have_rows()
// will screw up the loop
$count = count(get_field('locationsdates', 'option'));
if( have_rows('locationsdates', 'option') ):
// missing while
while ('locationsdates', 'option') ):
the_row();
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.