Support

Account

Home Forums General Issues How to display addition/ sum of number field, in repeator? Reply To: How to display addition/ sum of number field, in repeator?

  • I used this and its working now, Thanks for your time!

    <?php
    $total = 0;
    while(the_repeater_field(‘information’ )):
    $total += intval( get_sub_field(‘amount_paid’ ) );
    endwhile;
    echo $total;
    ?>