Skip to content

Instantly share code, notes, and snippets.

@rolandinsh
Created November 28, 2012 15:01
Show Gist options
  • Save rolandinsh/4161822 to your computer and use it in GitHub Desktop.
Save rolandinsh/4161822 to your computer and use it in GitHub Desktop.
meta-box select
<?php
$prefix = 'studystart_';
// global $meta_boxes;
$meta_boxes = array();
// First meta box
$meta_boxes[] = array(
'id' => 'skola',
'title' => __('School','studystart'),
'pages' => array( 'skola',),
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array(
'name' => __('Study Start','studystart'),
'id' => $prefix . 'prog_startdate',
'type' => 'select',
'options' => array(
'february' => __('February'),
'september' => __('September')
),
'multiple' => false,
'clone' => true,
),
)
);
foreach ($meta_boxes as $meta_box) {
new RW_Meta_Box($meta_box);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment