Skip to content

Instantly share code, notes, and snippets.

@cosmocanuck
Created December 14, 2013 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmocanuck/7966513 to your computer and use it in GitHub Desktop.
Save cosmocanuck/7966513 to your computer and use it in GitHub Desktop.
adaptive-metabox.php
<?php
/*
Title: Adaptive Snow Sports
Post Type: e2s_adaptive
context: normal
priority: high
*/
piklist('field', array(
'type' => 'text',
'scope' => 'post_meta',
'field' => 'adaptive_name',
'label' => __('Name'),
'position' => 'wrap',
'attributes' => array(
'class' => 'text',
'columns' => 10
)
));
piklist('field', array(
'type' => 'text',
'scope' => 'post_meta',
'field' => 'adaptive_URL',
'label' => __('URL'),
'position' => 'wrap',
'attributes' => array(
'class' => 'text',
'columns' => 10
)
));
piklist('field', array(
'type' => 'text',
'scope' => 'post_meta',
'field' => 'adaptive_phone',
'label' => __('Phone'),
'position' => 'wrap',
'attributes' => array(
'class' => 'text',
'columns' => 10
)
));
piklist('field', array(
'type' => 'text',
'scope' => 'post_meta',
'field' => 'adaptive_location',
'label' => __('Location'),
'position' => 'wrap',
'attributes' => array(
'class' => 'text',
'columns' => 10
)
));
piklist('field', array(
'type' => 'text',
'scope' => 'post_meta',
'field' => 'adaptive_affiliate',
'label' => __('Mountain Affiliate(s)'),
'position' => 'wrap',
'attributes' => array(
'class' => 'text',
'columns' => 10
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment