I have some post type, but now I need to add certain templates like in pages section.
function products_init() {
$args = array(
'label' => 'Products',
'capability_type' => 'page',
'menu_icon' => 'dashicons-cart',
'taxonomies' => array('category'),
'rewrite' => array('slug' => 'products'),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'menu_position' => 4,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'query_var' => true,
'supports' => array('title', 'editor', 'thumbnail', 'page-attributes')
);
register_post_type('products', $args);
}
add_action('init', 'products_init');