Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Russian CPT

// Register Custom Post Type
function services_type() {

	$labels = array(
		'name'                => _x( 'Услуги', 'Post Type General Name', 'pvtheme' ),
		'singular_name'       => _x( 'Услуга', 'Post Type Singular Name', 'pvtheme' ),
		'menu_name'           => __( 'Услуги', 'pvtheme' ),
		'parent_item_colon'   => __( 'Родительская услуга:', 'pvtheme' ),
		'all_items'           => __( 'Все услуги', 'pvtheme' ),
		'view_item'           => __( 'Просмотреть услугу', 'pvtheme' ),
		'add_new_item'        => __( 'Добавление новой услуги', 'pvtheme' ),
		'add_new'             => __( 'Добавить новую', 'pvtheme' ),
		'edit_item'           => __( 'Изменить услугу', 'pvtheme' ),
		'update_item'         => __( 'Обновить услугу', 'pvtheme' ),
		'search_items'        => __( 'Поиск по услугам', 'pvtheme' ),
		'not_found'           => __( 'Не найдено', 'pvtheme' ),
		'not_found_in_trash'  => __( 'В корзине ничего нет', 'pvtheme' ),
	);
	$args = array(
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', ),
		'taxonomies'          => array( 'category' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => false,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'post',
	);
	register_post_type( 'service', $args );

}

// Hook into the 'init' action
add_action( 'init', 'services_type', 0 );