Yani "Yazılar" kısmında oluşturduğum gibi çalışması gerekiyor.
Kodlar şu şekilde:
// Register Custom Post Type
function arabalar_post_type() {
$labels = array(
'name' => 'Arabalar',
);
$args = array(
'label' => 'Arabalar',
'description' => 'Araba Modelleri İle İlgili İçerikler.',
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ),
'taxonomies' => array( 'category' ),
'hierarchical' => false,
'public' => true,
'menu_position' => 5,
'has_archive' => true,
'show_in_rest' => true,
'capability_type' => 'post',
);
register_post_type( 'arabalar', $args );
}
add_action( 'init', 'arabalar_post_type', 0 );