WordPress Speed Up Service | WordPress Website Maintenance Packages Reply To: Plugin Territory Error – Function for CPT, by Eric Amundson Hey @milapdave, You can put all of the plugin functionality you want into your theme except for two things: Best practice is to keep functionality in plugins so you don’t lose functionality when you change themes If you’re trying to submit your theme to the wordpress.org repository, they have guidelines that prohibit bundling that functionality in themes. So the answer is that you can create CPTs in themes – whether you use an online CPT generator or a WP plugin and then port your CPT to the theme, but it’s not a good idea and definitely won’t work if you want to submit to the .org directory. A better way to go is to create your theme and create a separate plugin that enables functionality the ties into your theme. I hope that helps! e Reply To: Plugin Territory Error – Function for CPT