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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 22, 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.