Programming Post Type
MV
if ( ! function_exists('programming_post_type') ) { // Register Custom Post Type function programming_post_type() { $labels = array( 'name' => _x( 'Programmings', 'Post Type General Name', '__x__' ), 'singular_name' => _x( 'Programming', 'Post Type Singular Name', '__x__' ), 'menu_name' => __( 'Programming', '__x__' ), 'name_admin_bar' => __( 'Programming', '__x__' ), 'archives' => __( 'Item Archives', '__x__' ), 'attributes' => __( 'Item Attributes', '__x__' ), 'parent_item_colon' => __( 'Parent Item:', '__x__' ), 'all_items' => __( 'All Items', '__x__' ), 'add_new_item' => __( 'Add New Item', '__x__' ), 'add_new' => __( 'Add New', '__x__' ), 'new_item' => __( 'New Item', '__x__' ), 'edit_item' => __( 'Edit Item', '__x__' ), 'update_item' => __( 'Update Item', '__x__' ), 'view_item' => __( 'View Item', '__x__' ), 'view_items' => __( 'View Items', '__x__' ), 'search_items' => __( 'Search Item', '__x__' ), 'not_found' => __( 'Not found', '__x__' ), 'not_found_in_trash' => __( 'Not found in Trash', '__x__' ), 'featured_image' => __( 'Featured Image', '__x__' ), 'set_featured_image' => __( 'Set featured image', '__x__' ), 'remove_featured_image' => __( 'Remove featured image', '__x__' ), 'use_featured_image' => __( 'Use as featured image', '__x__' ), 'insert_into_item' => __( 'Insert into item', '__x__' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', '__x__' ), 'items_list' => __( 'Items list', '__x__' ), 'items_list_navigation' => __( 'Items list navigation', '__x__' ), 'filter_items_list' => __( 'Filter items list', '__x__' ), ); $args = array( 'label' => __( 'Programming', '__x__' ), 'description' => __( 'We have all programming video available here.', '__x__' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'programming-category' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-video-alt3', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'programming', $args ); } add_action( 'init', 'programming_post_type', 0 ); }