Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Сервисы для Hive Press

// Register Custom Taxonomy
function hp_listing_service() {

	$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',
	);
	$rewrite = array(
		'slug'                       => 'listing/service',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'hp_listing_service', array( 'hp_listing' ), $args );

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