-
Notifications
You must be signed in to change notification settings - Fork 124
Select Field
mattheu edited this page Apr 11, 2013
·
15 revisions
A select field. Options can be set manually by passing an array of option value => option name.
- id string (required)
- type 'text' (required)
- options array (required) - option_value => Option Name
- repeatable bool
- cols int [1-12]
array(
'id' => 'example-field-text',
'name' => 'A simple text input',
'type' => 'select',
'options' => array(
'option-1' => 'Option 1',
'option-2' => 'Option 2',
'option-3' => 'Option 3',
)
),
- Setup/Install Custom Meta Boxes
- Creating a custom meta box
- Displaying Field Data
- Optional Generic Field Args
- Repeatable Fields
General
- Text Field
- Small Text Field
- Number Field
- URL Field
- Textarea Field
- Code Field
- Select Field
- Checkbox Input Field
- Radio Input Field
Date & Time
WordPress
Media
Utilities