Skip to content

Instantly share code, notes, and snippets.

@andrastudio
Last active December 13, 2015 23:29
Show Gist options
  • Save andrastudio/4992344 to your computer and use it in GitHub Desktop.
Save andrastudio/4992344 to your computer and use it in GitHub Desktop.
// Staff metabox fields
'id' => 'staff_field_group',
'title' => 'Staff Information',
'fields' => array(
array (
'key' => 'staff_position',
'label' => 'Position / Job Title',
'name' => 'staff_job',
'type' => 'text',
'required' => '1',
),
array (
'key' => 'staff_email',
'label' => 'Email Address',
'name' => 'staff_email',
'type' => 'text',
'required' => '0'
),
array (
'key' => 'staff_linkedin',
'label' => 'LinkedIn Profile Url',
'name' => 'staff_linkedin',
'type' => 'text',
'required' => '0'
),
array (
'key' => 'staff_facebook',
'label' => 'Facebook Profile Url',
'name' => 'staff_facebook',
'type' => 'text',
'required' => '0'
),
array (
'key' => 'staff_twitter',
'label' => 'Twitter Profile Url',
'name' => 'staff_twitter',
'type' => 'text',
'required' => '0'
),
array (
'key' => 'staff_gplus',
'label' => 'Google+ Profile Url',
'name' => 'staff_gplus',
'type' => 'text',
'required' => '0'
),
),
'location' => array (
'rules' => array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'staff',
'order_no' => '0',
),
),
'allorany' => 'all',
),
'options' =>
array (
'position' => 'normal',
'layout' => 'box',
'hide_on_screen' =>
array (
),
),
'menu_order' => 0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment