-
Notifications
You must be signed in to change notification settings - Fork 123
misc optional args
cehwitham edited this page Oct 13, 2014
·
4 revisions
These can be used on most fields.
- desc (string) Field description. Displayed below label.
- repeatable (bool) see Repeatable Fields
-
repeatable_max (int) Use with
repeatable
to limit number of fields that can be created. see Repeatable Fields - readonly (bool) Prevent authors editing this field value.
- default (string) Set a default value
- cols (int) [1-12] Width in columns; CMB uses a grid of 12 columns.
- sortable (bool) allow repeated fields to have their order changed.
- 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