Bnd Radio shows
// Register Custom Post Type
function radio_show() {
$labels = array(
'name' => _x( 'Radio Shows', 'Post Type General Name', 'o2dca_framework' ),
'singular_name' => _x( 'Radio Show', 'Post Type Singular Name', 'o2dca_framework' ),
'menu_name' => __( 'Radio Shows', 'o2dca_framework' ),
'name_admin_bar' => __( 'Radio Show', 'o2dca_framework' ),
'archives' => __( 'Radio Show Archives', 'o2dca_framework' ),
'attributes' => __( 'Radio Show Attributes', 'o2dca_framework' ),
'parent_item_colon' => __( 'Parent Radio Show:', 'o2dca_framework' ),
'all_items' => __( 'All Radio Shows', 'o2dca_framework' ),
'add_new_item' => __( 'Add New Radio Show', 'o2dca_framework' ),
'add_new' => __( 'Add New', 'o2dca_framework' ),
'new_item' => __( 'New Radio Show', 'o2dca_framework' ),
'edit_item' => __( 'Edit Radio Show', 'o2dca_framework' ),
'update_item' => __( 'Update Radio Show', 'o2dca_framework' ),
'view_item' => __( 'View Radio Show', 'o2dca_framework' ),
'view_items' => __( 'View Radio Shows', 'o2dca_framework' ),
'search_items' => __( 'Search Radio Show', 'o2dca_framework' ),
'not_found' => __( 'Not found', 'o2dca_framework' ),
'not_found_in_trash' => __( 'Not found in Trash', 'o2dca_framework' ),
'featured_image' => __( 'Radio Show Image', 'o2dca_framework' ),
'set_featured_image' => __( 'Set radio show image', 'o2dca_framework' ),
'remove_featured_image' => __( 'Remove radio show image', 'o2dca_framework' ),
'use_featured_image' => __( 'Use as radio show image', 'o2dca_framework' ),
'insert_into_item' => __( 'Insert into radio show', 'o2dca_framework' ),
'uploaded_to_this_item' => __( 'Uploaded to this radio show', 'o2dca_framework' ),
'items_list' => __( 'Radio Shows list', 'o2dca_framework' ),
'items_list_navigation' => __( 'Radio Shows list navigation', 'o2dca_framework' ),
'filter_items_list' => __( 'Filter radio shows list', 'o2dca_framework' ),
);
$args = array(
'label' => __( 'Radio Show', 'o2dca_framework' ),
'description' => __( 'Radio Show', 'o2dca_framework' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-controls-volumeon',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'radio-show', $args );
}
add_action( 'init', 'radio_show', 0 );