Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Plugin Territory Error – Function for CPT

Discussion in 'Misc WordPress Requests' started by Eric Amundson, Mar 10, 2018.

  1. Eric Amundson


    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:

    1. Best practice is to keep functionality in plugins so you don’t lose functionality when you change themes
    2. 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!


    Reply To: Plugin Territory Error – Function for CPT

Share This Page

Monarch Social Sharing Plugin