Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

History Post Type

// Register Custom Post Type
function history_post_type() {

	$labels = array(
		'name'                => 'Histories',
		'singular_name'       => 'History',
		'menu_name'           => 'History',
		'parent_item_colon'   => 'Parent Item:',
		'all_items'           => 'All History',
		'view_item'           => 'View Item',
		'add_new_item'        => 'Add New Item',
		'add_new'             => 'Add New',
		'edit_item'           => 'Edit Item',
		'update_item'         => 'Update Item',
		'search_items'        => 'Search Item',
		'not_found'           => 'Not found',
		'not_found_in_trash'  => 'Not found in Trash',
	);
	$args = array(
		'label'               => 'history',
		'description'         => 'History of Unification Movement',
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 60,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'post',
	);
	register_post_type( 'history', $args );

}

// Hook into the 'init' action
add_action( 'init', 'history_post_type', 0 );