Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Coolaste projects taxonomy

// Register Custom Taxonomy
function coolaste_projects_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Проекты', 'Taxonomy General Name', 'coolaste' ),
		'singular_name'              => _x( 'Проект', 'Taxonomy Singular Name', 'coolaste' ),
		'menu_name'                  => __( 'Проекты', 'coolaste' ),
		'all_items'                  => __( 'Все проекты', 'coolaste' ),
		'parent_item'                => __( 'Родительская категория', 'coolaste' ),
		'parent_item_colon'          => __( 'Родительская категория:', 'coolaste' ),
		'new_item_name'              => __( 'Новый проект', 'coolaste' ),
		'add_new_item'               => __( 'Новый проект', 'coolaste' ),
		'edit_item'                  => __( 'Редактировать проект', 'coolaste' ),
		'update_item'                => __( 'Обновить проект', 'coolaste' ),
		'view_item'                  => __( 'Просмотреть проект', 'coolaste' ),
		'separate_items_with_commas' => __( 'Разделяйте пункты запятыми', 'coolaste' ),
		'add_or_remove_items'        => __( 'Добавить или удалить проект', 'coolaste' ),
		'choose_from_most_used'      => __( 'Выберите из наиболее используемых', 'coolaste' ),
		'popular_items'              => __( 'Популярные проекты', 'coolaste' ),
		'search_items'               => __( 'Поиск проектов', 'coolaste' ),
		'not_found'                  => __( 'Не найдено', 'coolaste' ),
		'no_terms'                   => __( 'Нет проектов', 'coolaste' ),
		'items_list'                 => __( 'Список проектов', 'coolaste' ),
		'items_list_navigation'      => __( 'Навигация по списку проектов', 'coolaste' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'rewrite'                    => false,
	);
	register_taxonomy( 'projects', array( 'post' ), $args );

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