-
-
Save billerickson/070476e584b04a20c770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'cmb_meta_boxes' , 'be_metaboxes' ); | |
/** | |
* Create Metaboxes | |
* | |
* @link http://www.billerickson.net/wordpress-metaboxes/ | |
* | |
*/ | |
function be_metaboxes( $meta_boxes ) { | |
$meta_boxes[] = array( | |
'id' => 'be-cat-2', | |
'title' => 'Category 2 Information', | |
'pages' => array('post'), | |
'show_on' => array( | |
'key' => 'taxonomy', | |
'value' => array( | |
'category' => 'cat-2', | |
'rotator-location' => array( 'location-1', 'location-3' ) | |
) | |
), | |
'context' => 'normal', | |
'priority' => 'high', | |
'show_names' => true, | |
'fields' => array( | |
array( | |
'name' => 'Subtitle', | |
'desc' => '', | |
'id' => 'be_post_subtitle', | |
'type' => 'text' | |
), | |
), | |
); | |
return $meta_boxes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using standard categories, not work for me, please suggest.