Skip to content

Instantly share code, notes, and snippets.

@feliciaceballos
Last active April 27, 2016 20:28
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 feliciaceballos/22b7c75da8a1e16c1f39c93699009fa3 to your computer and use it in GitHub Desktop.
Save feliciaceballos/22b7c75da8a1e16c1f39c93699009fa3 to your computer and use it in GitHub Desktop.
/*
Title: My Metabox
Description: My cool new metabox
Post Type: my_post_type
//if using a custom post type, enter the name of the post type above
*/
//field starts
piklist('field', array(
'type' => 'text'
,'field' => '_crm_proposal_first_name' //(enter the field name you created earlier here, between the ' ')
,'label' => 'First Name' //(enter the field title you created earlier here, between the ' ')
,'description' => ''
,'value' => ''
,'help' => ''
,'attributes' => array(
'class' => 'text'
)
));
// field ends
piklist('field', array(
'type' => 'text'
,'field' => '_crm_proposal_last_name'
,'label' => 'Last Name'
,'description' => ''
,'value' => ''
,'help' => ''
,'attributes' => array(
'class' => 'text'
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment