-
Notifications
You must be signed in to change notification settings - Fork 124
Radio Field
Barry Ceelen edited this page Aug 25, 2016
·
7 revisions
Radio option fields. Allows an author to select one option using radio inputs.
- id (string) (required)
- name (string) (required) Field display name. Used as field label.
- type 'radio' (string) (required)
- options (array) (required) Array key is input value, Array value is input label
array(
'id' => 'example-field-radio',
'type' => 'radio',
'options' => array(
'option-1' => 'Option 1',
'option-2' => 'Option 2'
)
),
- 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