Custom Post Types
We have simplified the process of adding custom post types by using arrays within a post-types.php file. In the /functions/ folder, you will see post-types.php. At the top, between lines 16 and 26, you will see a sample post type called “example” set up. Change the names, slug, and dashicon to customize the CPT. To add another, simply duplicate the inner array and add it within the $post_types array. (See code below.)
The last thing to change is in the /functions/dashboard.php file. Scroll down to line 300 to find the reordering of the WordPress dashboard. You will see the sample CPT in the menu on this line: ‘edit.php?post_type=example’,
Simply change the name from “example” to the name of your CPT. Duplicate and rename as necessary for multiple CPTs.