Last active
April 27, 2016 20:28
-
-
Save feliciaceballos/22b7c75da8a1e16c1f39c93699009fa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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