// set the object ID
$post_id = 99;
// this gets the repeater and all rows in an array
$repeater = get_field('repeater_field', $post_id);
// get the first row
$first = array_shift($repeater);
// update the repeater with the first row only
update_field('repeater_field', $first, $post_id);
Where ’99’ is the object (post/page) ID you want to update.
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users