Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

works post type for Katsura Zouen

桂造園用投稿タイプ

// Register Custom Post Type
function works_takumi_post_type() {

	$labels = array(
		'name'                  => _x( '匠の技', 'Post Type General Name', 'kkatsura' ),
		'singular_name'         => _x( '匠の技', 'Post Type Singular Name', 'kkatsura' ),
		'menu_name'             => __( '匠の技', 'kkatsura' ),
		'name_admin_bar'        => __( '匠の技', 'kkatsura' ),
		'archives'              => __( '匠の技', 'kkatsura' ),
		'attributes'            => __( '', 'kkatsura' ),
		'parent_item_colon'     => __( '親アイテム', 'kkatsura' ),
		'all_items'             => __( '全ての匠の技', 'kkatsura' ),
		'add_new_item'          => __( '新規匠の技追加', 'kkatsura' ),
		'add_new'               => __( '新規追加', 'kkatsura' ),
		'new_item'              => __( '新規追加', 'kkatsura' ),
		'edit_item'             => __( '匠の技を編集', 'kkatsura' ),
		'update_item'           => __( '匠の技を更新', 'kkatsura' ),
		'view_item'             => __( '匠の技を見る', 'kkatsura' ),
		'view_items'            => __( '匠の技を見る', 'kkatsura' ),
		'search_items'          => __( '匠の技を検索', 'kkatsura' ),
		'not_found'             => __( '匠の技は見つかりませんでした', 'kkatsura' ),
		'not_found_in_trash'    => __( 'ゴミ箱に匠の技は見つかりませんでした', 'kkatsura' ),
		'featured_image'        => __( '', 'kkatsura' ),
		'set_featured_image'    => __( '', 'kkatsura' ),
		'remove_featured_image' => __( '', 'kkatsura' ),
		'use_featured_image'    => __( '', 'kkatsura' ),
		'insert_into_item'      => __( '', 'kkatsura' ),
		'uploaded_to_this_item' => __( '', 'kkatsura' ),
		'items_list'            => __( '', 'kkatsura' ),
		'items_list_navigation' => __( '', 'kkatsura' ),
		'filter_items_list'     => __( '', 'kkatsura' ),
	);
	$args = array(
		'label'                 => __( '匠の技', 'kkatsura' ),
		'description'           => __( '巧みの技用投稿タイプ', 'kkatsura' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'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( 'works', $args );

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