Gallery

The Gallery field allows to create a new gallery of images by selecting existing images or uploading new ones with the WordPress uploader. It also can include image fields as below

gallery

Attributes

AttributesTypeRequiredDescription
idstringRequiredRequired. Unique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringOptionalSubtitle display of the option, situated beneath the title.
descstringOptionalDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For Gallery field here we set value gallery
colintOptionalThe proportion of columns that display field on 12 columns per row.

 Example Declaration