-
Notifications
You must be signed in to change notification settings - Fork 1
Adding meta fields to a meta box
Each meta field is represented by an array, and should be included inside the fields key of the desired metabox. Each field you add to your meta box can accept several keys (arguments).
id - String. Required. The field id. Should be in slug form and must be unique to this field AND to this box. You cannot use the same field id in different boxes. Example: my_field
title - String. Optional. The title for the field's label. Appears to the left of each field. This is what the end user will see.
description - String. Optional A description for the field. Will appear below the actual field.
repeater - Boolean. Optional. Set to true to make this field a repeater.
type - String. Optional. The current field type. The available field types are:
- text
- textarea
- checkbox
- radio
- select
- colorpicker
- file
- wysiwyg
The default field (in case one is not specified) is text. Any illegal field type will be interpreted as a text field. For more information on field types see field types.