Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create new meta box slider in child functions.php
- global $meta_boxes;
- $meta_boxes[] = array(
- 'id' => 'postlayout-option-meta-box',
- 'title' => __('Post Options','klasik'),
- // 'page' => 'post'changed
- 'page' => 'slug-custom-field',
- 'showbox' => 'meta_option_show_box',
- 'context' => 'normal',
- 'priority' => 'high',
- 'fields' => array(
- array(
- 'name' => __('Layout','klasik'),
- 'desc' => '<em>'.__('Select the layout you want on this specific post/page. Overrides default site layout.','klasik').'</em>',
- 'options' => $optlayoutimg,
- 'id' => 'klasik_layout',
- 'type' => 'selectimage',
- 'std' => ''
- ),
- array(
- 'name' => __('Feature on Homepage Slider','klasik'),
- 'desc' => '<em>'.__('Checked this checkbox if you want to show this post as Homepage Slider.','klasik').'</em>',
- 'id' => 'klasik_slider_post',
- 'type' => 'checkbox',
- 'std' => ''
- ),
- array(
- 'name' => __('Disable Blog Info on Single','klasik'),
- 'desc' => '<em>'.__('Checked this checkbox if you want to disable the meta and author information on single page (date, author, categories, etc).','klasik').'</em>',
- 'id' => 'klasik_disable_meta',
- 'type' => 'checkbox',
- 'std' => ''
- )
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement