Answer ( 1 )

    0
    2021-09-02T15:20:54-05:00

    $field_name = $repeater_field(1).‘_’.$sub_field(2);
    add_post_meta($post_id, $sub_field_name, VALUE TO INSERT);

    (1) The exact name of the parent field group.
    (2) The exact name of the subfield inside the parent.

    For example:
    Name of the group in ACF: fruits
    Name of subfield inside this group: banana

    add_post_meta($post_id, fruits_banana, VALUE TO INSERT);

     

     

     

     

     

Leave an answer

Browse
Browse