Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Породы

// Register Custom Taxonomy
function register_dogs_breed() {

	$labels = array(
		'name'                       => 'Породы',
		'singular_name'              => 'Порода',
		'menu_name'                  => 'Породы',
		'all_items'                  => 'Все породы',
		'parent_item'                => 'Родительская',
		'parent_item_colon'          => 'Родительская:',
		'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'                  => 'Ничего не найдено',
	);
	$rewrite = array(
		'slug'                       => 'breed',
		'with_front'                 => true,
		'hierarchical'               => true,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'breed', array( 'dog' ), $args );

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