-
Notifications
You must be signed in to change notification settings - Fork 123
Post select field
mattheu edited this page Apr 11, 2013
·
12 revisions
Post select field. Displays a select input allowing the user to select a post.
By default, the last 5 posts are available. It is reccommended to use the 'use_ajax' argument, to populate the field options.
Uses Select2, a jQuery based replacement for select boxes.
- id string (required)
- type 'post_select' (required)
- use_ajax bool
- repeatable bool
- cols int [1-12]
array(
'id' => 'example-field-post-select',
'name' => 'Post Select Field',
'type' => 'post_select',
'use_ajax' => true
);
- 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