Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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