Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Choose Category For Posts
- $cmb->add_field( array(
- 'name' => esc_html__( 'Category', 'majestica' ),
- 'desc' => esc_html__( 'Category of Posts to Display. If using one of the templates that displays a number of posts.', 'majestica' ),
- 'id' => 'majestica_posts_category',
- 'taxonomy' => 'category', //Enter Taxonomy Slug
- 'type' => 'taxonomy_select',
- ) );
- $categoryname = get_post_meta( get_the_ID(), 'majestica_posts_category', true );
- echo $categoryname;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement