Support

Account

Home Forums General Issues update post object field Reply To: update post object field

  • Hi @oleggen,

    Since the Post Object field contains an array of values, you will need to pass an array of values to the Update_field() something like the following:

    $doctor = get_field($field_key, $post_id);
    $value[] = array(//your_values);
    update_field( $field_key, $value, $post_id );

    You should also use try using the field_key on the get_field() function.