Cartwright Projects

[
‘name’ => ‘Projects’,
‘singular_name’ => ‘Project’,
],
‘public’ => true,
‘menu_icon’ => ‘dashicons-portfolio’,
‘supports’ => [
‘title’,
‘editor’,
‘thumbnail’,
‘excerpt’,
‘custom-fields’,
],
‘has_archive’ => true,
‘rewrite’ => [
‘slug’ => ‘projects’,
],
‘show_in_rest’ => true,
]);

register_taxonomy(‘project_category’, [‘project’], [
‘label’ => ‘Project Categories’,
‘public’ => true,
‘show_in_rest’ => true,
‘hierarchical’ => true,
‘rewrite’ => [
‘slug’ => ‘project-category’,
],
]);
});