Страны
Страны
// Register Custom Taxonomy function country_taxonomy() { $labels = array( 'name' => _x( 'Страны', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Страна', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Страны', 'text_domain' ), 'all_items' => __( 'Все Страны', 'text_domain' ), 'parent_item' => __( 'Parent Item', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'new_item_name' => __( 'Название Страны', 'text_domain' ), 'add_new_item' => __( 'Добавить Новую Страну', 'text_domain' ), 'edit_item' => __( 'Редактировать Страну', 'text_domain' ), 'update_item' => __( 'Обновить Страну', 'text_domain' ), 'separate_items_with_commas' => __( 'Разделите Страны запятой', 'text_domain' ), 'search_items' => __( 'Поиск Стран', 'text_domain' ), 'add_or_remove_items' => __( 'Добавить или Удалить Страны', 'text_domain' ), 'choose_from_most_used' => __( 'Выбрать из часто используемых', 'text_domain' ), 'not_found' => __( 'Не Найдена', 'text_domain' ), ); $rewrite = array( 'slug' => 'country', '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, 'query_var' => 'country', 'rewrite' => $rewrite, ); register_taxonomy( 'country_taxonomy', 'custom_post_type', $args ); } // Hook into the 'init' action add_action( 'init', 'country_taxonomy', 0 );