The following shows code to add a custom post type (CPT). I would suggest using CPTUI plugin or the Pods plugin. I have used both and it makes it easier getting the code correct, and if any adjustments are needed the plugin will take care of it. I made the Post Type “Movies” and the two category taxonomies “Year Made” and “Movie Category”. I then added in a few movies.
Result of adding a Movies Custom Post Type (CPT).
Movie Category and Year Made as well as some content.
This tutorial was originally written 15 August 2018.
Based on Rens excellent tutorial.
https://wpmudev.com/blog/creating-content-custom-post-types/ (Recently updated)