Your cart is currently empty!
Creating a movie custom post type
—
by
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.
Plugins
I usually use the plugin custom Post Type UI. As it works really well and one can easily go back and adjust. I have also used the plugin Pods.
https://www.codeinwp.com/blog/top-custom-post-types-plugins-for-wordpress/
Resources
Based on Rens excellent tutorial.
https://wpmudev.com/blog/creating-content-custom-post-types/ (Recently updated)
https://www.idiotinside.com/2015/02/18/how-to-disable-comments-on-custom-post-type/
https://michaelbox.net/2020/06/slugless-post-type-permalinks/
Leave a Reply