Home › Forums › ACF PRO › Two Issues… Repeater Display and DateTime 1970 › Reply To: Two Issues… Repeater Display and DateTime 1970
For your first issue, groupings are treated similar to repeater fields but there is a single row of data in that value.
Visually, it appears as a repeater within a repeater.
<?php
// Check for grouping.
if ( have_rows( 'price_information' ) ) :
while ( have_rows( 'price_information' ) ) : the_row();
// Check for repeater.
if ( have_rows( 'event_cost_structure' ) ) :
// Loop through the rows of data.
while ( have_rows( 'event_cost_structure' ) ) : the_row(); ?>
<p><?php the_sub_field( 'option_name' ); ?> : <?php the_sub_field( 'option_price' ); ?></p>
<?php
endwhile;
endif;
endwhile;
else :
// No rows found.
endif; ?>
For the second issue, it seems to format the date correctly on my end…What are your organizations and settings in regards to the display/return format for the Date Picker?
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.