Support

Account

Home Forums Add-ons Repeater Field Programatically updating repeater fields not working as should

Unread

Programatically updating repeater fields not working as should

  • I have an ACF repeater field to collect a list of items.

    According to this topic, and the official update field documentation, I have followed the structure indicated.

    My code looks like this

    $repeater_key = 'field_630a7a6160224';
    $value = array(
    array( 'field_630a7a7d60225' => $value )
    );
    update_field( $repeater_key, $value, $recipe_id );

    This seems to work fine and I can see the info as an array in the post custom field data as shown here – https://prnt.sc/4eYgDvHkdF7i

    However, the repeater itself does not update with the info – https://prnt.sc/oR6Oe3KE1ngb

    How do I get this to update the repeater field correctly please? Not sure what part of this is wrong since the info is being saved to the custom field metadata.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.