Support

Account

Home Forums Add-ons Repeater Field Get Data from Last Row in Repeater Reply To: Get Data from Last Row in Repeater

  • Okay 🙂

    So to work with just the last row you can easily do something like:

    
    <?php
    $repeater = get_field('repeater');
    $last_row = end($repeater);
    
    echo $last_row['sub_field'];
    ?>