Skip to content

Instantly share code, notes, and snippets.

@netaustin
Created April 20, 2013 14:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netaustin/5426194 to your computer and use it in GitHub Desktop.
Save netaustin/5426194 to your computer and use it in GitHub Desktop.
<?php
// put this in functions.php or an include file
add_action( 'init', function() {
$fm = new Fieldmanager_Group( array(
'name' => 'contact_information',
'children' => array(
'name' => new Fieldmanager_Textfield( 'Name' ),
'phone_number' => new Fieldmanager_Textfield( 'Phone Number' ),
'website' => new Fieldmanager_Link( 'Website' ),
),
) );
$fm->add_meta_box( 'Contact Information', array( 'post' ) );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment