Support

Account

Home Forums Add-ons Gallery Field Removing images from a repeater or gallery field Reply To: Removing images from a repeater or gallery field

  • Hi @vividentity

    Yes. Instead, please use the update_field function. This will override the old value with the new value.

    To update the gallery field, just provide the $value as an array of attachment ID’s.

    To update a repeater field, just provide the $value as a multi-dimensional array containing rows of data which contain the sub field values.

    You can read more on the docs page

    Thanks
    E