Board Notices CPT
// Register Custom Post Type
function pbcsports_board_notes() {
$labels = array(
'name' => _x( 'Board Notices', 'Post Type General Name', 'pbc-sports-commission-theme' ),
'singular_name' => _x( 'Board Notice', 'Post Type Singular Name', 'pbc-sports-commission-theme' ),
'menu_name' => __( 'Board Notices', 'pbc-sports-commission-theme' ),
'name_admin_bar' => __( 'Board Notice', 'pbc-sports-commission-theme' ),
'archives' => __( 'Board Notice Archives', 'pbc-sports-commission-theme' ),
'attributes' => __( 'Board Notice Attributes', 'pbc-sports-commission-theme' ),
'parent_item_colon' => __( 'Parent Board Notice:', 'pbc-sports-commission-theme' ),
'all_items' => __( 'All Board Notices', 'pbc-sports-commission-theme' ),
'add_new_item' => __( 'Add New Board Notice', 'pbc-sports-commission-theme' ),
'add_new' => __( 'Add Board Notice', 'pbc-sports-commission-theme' ),
'new_item' => __( 'New Board Notice', 'pbc-sports-commission-theme' ),
'edit_item' => __( 'Edit Board Notice', 'pbc-sports-commission-theme' ),
'update_item' => __( 'Update Board Notice', 'pbc-sports-commission-theme' ),
'view_item' => __( 'View Board Notice', 'pbc-sports-commission-theme' ),
'view_items' => __( 'View Board Notices', 'pbc-sports-commission-theme' ),
'search_items' => __( 'Search Board Notice', 'pbc-sports-commission-theme' ),
'not_found' => __( 'Not found', 'pbc-sports-commission-theme' ),
'not_found_in_trash' => __( 'Not found in Trash', 'pbc-sports-commission-theme' ),
'featured_image' => __( 'Featured Image', 'pbc-sports-commission-theme' ),
'set_featured_image' => __( 'Set featured image', 'pbc-sports-commission-theme' ),
'remove_featured_image' => __( 'Remove featured image', 'pbc-sports-commission-theme' ),
'use_featured_image' => __( 'Use as featured image', 'pbc-sports-commission-theme' ),
'insert_into_item' => __( 'Insert into Board Notice', 'pbc-sports-commission-theme' ),
'uploaded_to_this_item' => __( 'Uploaded to this Board Notice', 'pbc-sports-commission-theme' ),
'items_list' => __( 'Board Notices list', 'pbc-sports-commission-theme' ),
'items_list_navigation' => __( 'Board Notices list navigation', 'pbc-sports-commission-theme' ),
'filter_items_list' => __( 'Filter Board Notices list', 'pbc-sports-commission-theme' ),
);
$args = array(
'label' => __( 'Board Notice', 'pbc-sports-commission-theme' ),
'description' => __( 'Board Member Notices', 'pbc-sports-commission-theme' ),
'labels' => $labels,
'supports' => array( 'title', 'editor' ),
'taxonomies' => array( 'cats' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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' => 'page',
);
register_post_type( 'board-notice', $args );
}
add_action( 'init', 'pbcsports_board_notes', 0 );