<?
/*
* Пользовательские типы записей для темы
*/

/* 
	=========
	ВОПРОСЫ
	=========
*/
// CREATE CUSTOM POST TYPES
add_action( 'init', 'create_voprosy_item' );

function create_voprosy_item() {
    register_post_type( 'voprosy',
        array(
            'labels' => array(
                'name' => 'Вопросы',
                'singular_name' => 'Вопрос',
                'add_new' => 'Добавить',
                'add_new_item' => 'Добавить вопрос',
                'edit' => 'Редактировать',
                'edit_item' => 'Редактировать вопрос',
                'new_item' => 'Вопрос',
                'view' => 'Просмотр',
                'view_item' => 'Просмотр вопроса',
                'search_items' => 'Поиск в вопросах',
                'not_found' => 'Не найдено',
                'not_found_in_trash' => 'Нет записей в корзине',
                'parent' => 'Родительская запись'
            ),
            'public' => true,
            'menu_position' => 15,
            'supports' => array(  'title', 'editor', 'thumbnail', 'revisions', 'comments' ),
            'taxonomies' => array( '' ),
            'menu_icon' => 'dashicons-search',
            'has_archive' => true,
			'rewrite' => array( 'slug' => 'voprosy', 'with_front' => false )
        )
    );
} 

//CREATE CUSTOM TAXONOMIES
add_action( 'init', 'create_voprosy_taxonomies', 0 );

function create_voprosy_taxonomies() {
    register_taxonomy(
        'kategorii-voprosov',
        'voprosy',
        array(
            'labels' => array(
                'name' => 'Категории вопросов',
                'add_new_item' => 'Добавить новую категорию',
                'new_item_name' => "Новая категория"
            ),
            'show_ui' => true,
			'rewrite' => array( 'slug' => 'kategorii-voprosov', 'with_front' => false ),
            'show_tagcloud' => false,
            'hierarchical' => true
        ) 
    );
}

function fairy_remove_post_type_support() {
	remove_post_type_support('voprosy', 'post-formats');
}
add_action('init', 'fairy_remove_post_type_support', 10);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//sadovij-instrument.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://sadovij-instrument.com/post-sitemap.xml</loc>
		<lastmod>2026-05-07T17:19:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sadovij-instrument.com/page-sitemap.xml</loc>
		<lastmod>2018-10-17T19:59:36+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sadovij-instrument.com/attachment-sitemap.xml</loc>
		<lastmod>2026-05-07T17:19:54+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sadovij-instrument.com/attachment-sitemap2.xml</loc>
		<lastmod>2026-05-07T17:19:54+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sadovij-instrument.com/category-sitemap.xml</loc>
		<lastmod>2026-05-07T17:19:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sadovij-instrument.com/author-sitemap.xml</loc>
		<lastmod>2022-07-02T15:36:08+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->