Arastoo CPT is a free WordPress plugin I used for my projects. Just like what other developer said, it is better to create a custom post type using a plugin instead of creating it via theme’s functions.php.
The reason is whenever you switch to different theme, your custom post type will be lost if you add it to your theme/child theme’s function.
There are lot of WP custom plugins that create custom post types. But most of the time, I do not need the additional features of those plugin. So create my own custom plugin, very minimal and basic that will help me build WordPress Websites easier in the future.
=== Arastoo Custom Post Type === Contributors: Arteo Tags: custom post type, cpt, simple custom post type, easy Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=SFB86DRUEMPGC¤cy_code=USD&amount=5 Requires at least: 4.7 Tested up to: 5.5.3 Requires PHP: 7.0 Stable tag: 1.0.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html == Description == WordPress Custom Post Type This plugin can help you create upto two custom post types. === Instruction === 1. Upload Arastoo Custom Post Type to your blog. 2. Install 3. Activate 4. Create custom post type under Settings > Arastoo CPT == Frequently Asked Questions == = 1. How many custom post type can I add? = You can add up to Two custom post type == Screenshots == * arastoo-cpt-options-settings.png - Options settings == Changelog == = V1.0.2 = * Fixed "Calling file locations poorly" * Fixed generic functions names = V1.0.1 = * Seperation of parts and assets. = V1.0 = *Initial development. == Upgrade Notice == = V1.0.2 = * Fixed "Calling file locations poorly" * Fixed generic functions names = V1.0.1 - 16.11.2020 = * Seperation of parts and assets. = V1.0 - 13.11.2020 = * Update : Immediate upgrade.