Here is the Article Post Type code:
function cptui_register_my_cpts_mark_category() {
/**
* Post Type: Articles.
*/
$labels = [
"name" => esc_html__( "Articles", "Avada" ),
"singular_name" => esc_html__( "Article", "Avada" ),
];
$args = [
"label" => esc_html__( "Articles", "Avada" ),
"labels" => $labels,
"description" => "",
"public" => true,
"publicly_queryable" => true,
"show_ui" => true,
"show_in_rest" => true,
"rest_base" => "",
"rest_controller_class" => "WP_REST_Posts_Controller",
"rest_namespace" => "wp/v2",
"has_archive" => false,
"show_in_menu" => true,
"show_in_nav_menus" => true,
"delete_with_user" => false,
"exclude_from_search" => false,
"capability_type" => "post",
"map_meta_cap" => true,
"hierarchical" => true,
"can_export" => false,
"rewrite" => [ "slug" => "article", "with_front" => true ],
"query_var" => true,
"supports" => [ "title", "editor", "thumbnail", "excerpt", "trackbacks", "comments", "revisions", "author", "page-attributes" ],
"taxonomies" => [ "article-category" ],
"show_in_graphql" => false,
];
register_post_type( "mark_category", $args );
}
add_action( ‘init’, ‘cptui_register_my_cpts_mark_category’ );