Custom Blogs Post Type with Templates and Theme Integration
I was working on a website where posts(default wordpress post) is reserved for a purpose and there is no other way to work in same templating like (single.php) and (archive.php) so i created a custom post type without any plugin.
- No Need to create files: Just copy this folder to either your child theme or parent theme (configuration in config lines).
- Include (init.php) from the directory to make it work easily.
- Single.php is provided in the folder to customize it according to your will.
- No extra configurations easy to use.
- Constants define in the file init.php (will be soon available in config file.
define('BCPT_VERSION','1.0.0');
This line is important if you are included it in child theme make this false ( idea behind the true is you are using it in parent theme).
Directory name you can change it but make it readable for others the functionality etc.