Advertisement
nonchiedercilaparola

Untitled

Jan 28th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Create new meta box slider in child functions.php
  2. global $meta_boxes;
  3.  
  4. $meta_boxes[] = array(
  5.         'id' => 'postlayout-option-meta-box',
  6.         'title' => __('Post Options','klasik'),
  7.     // 'page' => 'post'changed
  8.         'page' => 'slug-custom-field',
  9.         'showbox' => 'meta_option_show_box',
  10.         'context' => 'normal',
  11.         'priority' => 'high',
  12.         'fields' => array(
  13.                 array(
  14.                         'name' => __('Layout','klasik'),
  15.                         'desc' => '<em>'.__('Select the layout you want on this specific post/page. Overrides default site layout.','klasik').'</em>',
  16.                         'options' => $optlayoutimg,
  17.                         'id' => 'klasik_layout',
  18.                         'type' => 'selectimage',
  19.                         'std' => ''
  20.                 ),
  21.                 array(
  22.                         'name' => __('Feature on Homepage Slider','klasik'),
  23.                         'desc' => '<em>'.__('Checked this checkbox if you want to show this post as Homepage Slider.','klasik').'</em>',
  24.                         'id' => 'klasik_slider_post',
  25.                         'type' => 'checkbox',
  26.                         'std' => ''
  27.                 ),
  28.                 array(
  29.                         'name' => __('Disable Blog Info on Single','klasik'),
  30.                         'desc' => '<em>'.__('Checked this checkbox if you want to disable the meta and author information on single page (date, author, categories, etc).','klasik').'</em>',
  31.                         'id' => 'klasik_disable_meta',
  32.                         'type' => 'checkbox',
  33.                         'std' => ''
  34.                 )
  35.         )
  36. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement