Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

L album

// Register Custom Taxonomy
function albums() {

	$labels = array(
		'name'                       => 'Альбомы',
		'singular_name'              => 'Альбомы',
		'menu_name'                  => 'Альбомы',
		'all_items'                  => 'Все альбомы',
		'parent_item'                => 'Parent Item',
		'parent_item_colon'          => 'Parent Item:',
		'new_item_name'              => 'Новый альбом',
		'add_new_item'               => 'Добавить альбом',
		'edit_item'                  => 'Редактировать альбом',
		'update_item'                => 'Обновить альбом',
		'view_item'                  => 'Посмотреть альбом',
		'separate_items_with_commas' => 'Разделитель - запятая',
		'add_or_remove_items'        => 'Добавить или удалить альбом',
		'choose_from_most_used'      => 'Выбрать из самых используемых',
		'popular_items'              => 'Популярные альбомы',
		'search_items'               => 'Найти',
		'not_found'                  => 'Не найдено.',
		'no_terms'                   => 'Такого здесь нет.',
		'items_list'                 => 'Список альбомов',
		'items_list_navigation'      => 'Items list navigation',
	);
	$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( 'albums', array( 'gallery' ), $args );

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