Skip to content

Instantly share code, notes, and snippets.

@vanderwijk
Created October 24, 2012 14:19
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 vanderwijk/3946331 to your computer and use it in GitHub Desktop.
Save vanderwijk/3946331 to your computer and use it in GitHub Desktop.
SmartMetaBox
add_smart_meta_box('page_options_meta_box', array(
'title' => 'Page Options',
'pages' => array('page'),
'context' => 'normal',
'priority' => 'default',
'fields' => array(
array(
'name' => 'Slider',
'id' => 'show_slider',
'default' => 'false',
'desc' => 'Show slider',
'type' => 'checkbox',
),
array(
'name' => 'Featured',
'id' => 'featured_page',
'default' => 'false',
'desc' => 'Show as featured page on home',
'type' => 'checkbox',
),
array(
'name' => 'Navigation',
'id' => 'navigation_hide',
'default' => 'false',
'desc' => 'Hide page from navigation',
'type' => 'checkbox',
),
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment