i don’t know if i did it right, this is the code i managed to do and it works
<?php if( have_rows('misure_e_prezzi')): $rows = get_field('misure_e_prezzi' ); $my_fields = get_field_object('misure_e_prezzi'); $specific_row = $rows; $first_row_price = $specific_row['prezzo' ]; $count = (count($my_fields['value'])); $valuta = '€ '; ?> <div class='prezzo'> <?php if ($count ==1) echo $valuta .number_format( $first_row_price, 2, ',', ' ');?></div> <?php if ($count >1) echo 'A partire da: '?> <div class='prezzo'> <?php if ($count >1) echo $valuta .number_format( $first_row_price, 2, ',', ' ');?></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!
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future.— Advanced Custom Fields (@wp_acf) January 6, 2023
© 2023 Advanced Custom Fields.