Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Gallery Tax

// Register Custom Taxonomy
function hrm_gallery() {

	$labels = array(
		'name'                       => _x( 'Galleries', 'Taxonomy General Name', 'hrm' ),
		'singular_name'              => _x( 'Gallery', 'Taxonomy Singular Name', 'hrm' ),
		'menu_name'                  => __( 'Gallery', 'hrm' ),
		'all_items'                  => __( 'Tất Cả Gallery', 'hrm' ),
		'parent_item'                => __( 'Gallery Cha', 'hrm' ),
		'parent_item_colon'          => __( 'Gallery Cha:', 'hrm' ),
		'new_item_name'              => __( 'Tên Gallery Mới', 'hrm' ),
		'add_new_item'               => __( 'Thêm Gallery Mới', 'hrm' ),
		'edit_item'                  => __( 'Sửa Gallery', 'hrm' ),
		'update_item'                => __( 'Cập Nhật Gallery', 'hrm' ),
		'view_item'                  => __( 'Xem Gallery', 'hrm' ),
		'separate_items_with_commas' => __( 'Phân cách các gallery bằng dấu phẩy', 'hrm' ),
		'add_or_remove_items'        => __( 'Thêm hoặc loại bỏ gallery', 'hrm' ),
		'choose_from_most_used'      => __( 'Chọn từ các gallery phổ biến', 'hrm' ),
		'popular_items'              => __( 'Các Gallery Phổ Biến', 'hrm' ),
		'search_items'               => __( 'Tìm Kiếm Gallery', 'hrm' ),
		'not_found'                  => __( 'Không thấy', 'hrm' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'gallery', array( 'album' ), $args );

}

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