news post type
news post type for neuroclinic
// Register Custom Post Type function post_news() { $labels = array( 'name' => 'Новости', 'singular_name' => 'Новость', 'menu_name' => 'Новости', 'name_admin_bar' => 'Новость', 'archives' => 'Архив новостей', 'attributes' => 'Свойства', 'parent_item_colon' => 'Родительский:', 'all_items' => 'Все новости', 'add_new_item' => 'Добавить Новость', 'add_new' => 'Добавить', 'new_item' => 'Новая', 'edit_item' => 'Изменить', 'update_item' => 'Обновить', 'view_item' => 'Показать', 'view_items' => 'Показать', 'search_items' => 'Поиск', 'not_found' => 'Не найдено', 'not_found_in_trash' => 'Нет в корзине', 'featured_image' => 'Картинка страницы', 'set_featured_image' => 'Поставить картинку', 'remove_featured_image' => 'Убрать картинку', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => 'Список устройств', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Фильтр списка устройств', ); $rewrite = array( 'slug' => 'post', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'Новость', 'description' => 'Все новости', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'revisions', 'custom-fields' ), 'taxonomies' => array( 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-media-text', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'news', 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', 'show_in_rest' => true, ); register_post_type( 'news', $args ); } add_action( 'init', 'post_news', 0 );