Select

The Select field displays information in a drop-down field in both single and multi-select formats (press Ctrl)

select

Attributes

AttributesDescription
idUnique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titleDisplays title of the option.
subtitleSubtitle display of the option, situated beneath the title.
descDescription of the option, appearing beneath the field control.
typeValue identifying the field type. For Select field we set the value select
defaultKey value from the options array to set as default.
colThe proportion of columns that display field on 12 columns per row.
optionsArray of options in key pair format. The key represents the ID of the option. The value represents the text to appear in the selector.
multipleFlag to set the multi-select variation of the field. Default value is false
dataValue to populate the selector with WordPress values.  Accepts: sidebar menu taxonomy post types
data_argsWordPress arguments for the specific data to be retrieved.
placeholderText to display in the selector when no value is present.

 Example Declaration