Support Forum
Hi, I know that the plugin officially only supports 4.1 and higher but I have a site that for varying reasons cannot at the moment upgrade to a later version. I have installed the metabox plugin and it installs without any problem however I cannnot get certain field types to work.
I was hoping that there might be a work around to get me by for the moment.
These are the fields that won't display (taken from your demo.php)
Thanks in advance
/*// IMAGE UPLOAD
array(
'name' => esc_html__( 'Image Upload', 'your-prefix' ),
'id' => "{$prefix}image",
'type' => 'image',
),
// FILE UPLOAD
array(
'name' => esc_html__( 'File Upload', 'your-prefix' ),
'id' => "{$prefix}file",
'type' => 'file',
),
// POST
array(
'name' => esc_html__( 'Posts (Pages)', 'your-prefix' ),
'id' => "{$prefix}pages",
'type' => 'post',
// Post type
'post_type' => 'page',
// Field type, either 'select' or 'select_advanced' (default)
'field_type' => 'select_advanced',
'placeholder' => esc_html__( 'Select an Item', 'your-prefix' ),
// Query arguments (optional). No settings means get all published posts
'query_args' => array(
'post_status' => 'publish',
'posts_per_page' => - 1,
),
),
// SELECT ADVANCED BOX
array(
'name' => esc_html__( 'Select', 'your-prefix' ),
'id' => "{$prefix}select_advanced",
'type' => 'select_advanced',
// Array of 'value' => 'Label' pairs for select box
'options' => array(
'value1' => esc_html__( 'Label1', 'your-prefix' ),
'value2' => esc_html__( 'Label2', 'your-prefix' ),
),
// Select multiple values, optional. Default is false.
'multiple' => false,
// 'std' => 'value2', // Default value, optional
'placeholder' => esc_html__( 'Select an Item', 'your-prefix' ),
),
// AUTOCOMPLETE
array(
'name' => esc_html__( 'Autocomplete', 'your-prefix' ),
'id' => "{$prefix}autocomplete",
'type' => 'autocomplete',
// Options of autocomplete, in format 'value' => 'Label'
'options' => array(
'value1' => esc_html__( 'Label1', 'your-prefix' ),
'value2' => esc_html__( 'Label2', 'your-prefix' ),
),
// Input size
'size' => 30,
// Clone?
'clone' => false,
),
// COLOR
array(
'name' => esc_html__( 'Color picker', 'your-prefix' ),
'id' => "{$prefix}color",
'type' => 'color',
),
// CHECKBOX LIST
array(
'name' => esc_html__( 'Checkbox list', 'your-prefix' ),
'id' => "{$prefix}checkbox_list",
'type' => 'checkbox_list',
// Options of checkboxes, in format 'value' => 'Label'
'options' => array(
'value1' => esc_html__( 'Label1', 'your-prefix' ),
'value2' => esc_html__( 'Label2', 'your-prefix' ),
),
),*/
/*// DATE
array(
'name' => esc_html__( 'Date picker', 'your-prefix' ),
'id' => "{$prefix}date",
'type' => 'date',
// jQuery date picker options. See here http://api.jqueryui.com/datepicker
'js_options' => array(
'appendText' => esc_html__( '(yyyy-mm-dd)', 'your-prefix' ),
'dateFormat' => esc_html__( 'yy-mm-dd', 'your-prefix' ),
'changeMonth' => true,
'changeYear' => true,
'showButtonPanel' => true,
),
),
// DATETIME
array(
'name' => esc_html__( 'Datetime picker', 'your-prefix' ),
'id' => $prefix . 'datetime',
'type' => 'datetime',
// jQuery datetime picker options.
// For date options, see here http://api.jqueryui.com/datepicker
// For time options, see here http://trentrichardson.com/examples/timepicker/
'js_options' => array(
'stepMinute' => 15,
'showTimepicker' => true,
),
),*/