Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Notice Board

// Register Custom Post Type
function create_notice_board() {

	$labels = array(
		'name'                  => _x( 'Notices', 'Post Type General Name', 'citybluffcondos' ),
		'singular_name'         => _x( 'Notice', 'Post Type Singular Name', 'citybluffcondos' ),
		'menu_name'             => __( 'Notice Board', 'citybluffcondos' ),
		'name_admin_bar'        => __( 'Notice Board', 'citybluffcondos' ),
		'archives'              => __( 'Notices', 'citybluffcondos' ),
		'parent_item_colon'     => __( '', 'citybluffcondos' ),
		'all_items'             => __( 'All Notices', 'citybluffcondos' ),
		'add_new_item'          => __( 'Add New Notice', 'citybluffcondos' ),
		'add_new'               => __( 'Add Notice', 'citybluffcondos' ),
		'new_item'              => __( 'New Notice', 'citybluffcondos' ),
		'edit_item'             => __( 'Edit Notice', 'citybluffcondos' ),
		'update_item'           => __( 'Update Notice', 'citybluffcondos' ),
		'view_item'             => __( 'View Notice', 'citybluffcondos' ),
		'search_items'          => __( 'Search Notices', 'citybluffcondos' ),
		'not_found'             => __( 'Not found', 'citybluffcondos' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'citybluffcondos' ),
		'featured_image'        => __( 'Featured Image', 'citybluffcondos' ),
		'set_featured_image'    => __( 'Set featured image', 'citybluffcondos' ),
		'remove_featured_image' => __( 'Remove featured image', 'citybluffcondos' ),
		'use_featured_image'    => __( 'Use as featured image', 'citybluffcondos' ),
		'insert_into_item'      => __( 'Insert into notice', 'citybluffcondos' ),
		'uploaded_to_this_item' => __( 'Uploaded to notice', 'citybluffcondos' ),
		'items_list'            => __( 'Notices list', 'citybluffcondos' ),
		'items_list_navigation' => __( 'Notices navigation', 'citybluffcondos' ),
		'filter_items_list'     => __( 'Filter notices list', 'citybluffcondos' ),
	);
	$args = array(
		'label'                 => __( 'Notice', 'citybluffcondos' ),
		'description'           => __( 'Notice Board', 'citybluffcondos' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', ),
		'taxonomies'            => array( 'category', ' post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-clipboard',
		'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( 'NoticeBoard', $args );

}
add_action( 'init', 'create_notice_board', 0 );