1243 posts
  • Provided great contribution to our forums
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
Smartik says


Hi, sorry Envato but we need some clarifications. November is just around the corner. The idea looks great on the paper but in a real world it doesn’t make sens.

I can understand putting shortcodes in separate plugin (which will cause in loading tones of extra useless JS and CSS) but custom post types? When a user switches a theme it will have completely different markup structure. Our plugin with users brand new theme will look like crap. So my question is what is the point? In this thread there are tones of reasonable examples from real world without answer… Please explain what should we do and whats the point. I am personally working on a new project and still do not know how it should be structured to get approved.

Should we put everything in one plugin just to avoid having it inside the theme to get approved?

P.S I have a challenge for fellow authors lets use Twenty-thirteen and bunch of plugins. Everything except blog must be outside the theme so it wont matter which theme we are using :)
The point of putting CPTs in plugins is quite simple: even if the new theme doesn’t know what to do with that custom post type (although your other themes may know ;) ) the user will still have access to the data of the old cpt from the backend and will be able to copy and paste it in the new theme’s data structure, if it chooses to. If not he will simply deactivate the plugin and all will be gone. It is as simple as this.

I make it even simple.
A. Make the CPT as plugin, include the necesary code in your template to work as it need when it is activated.
B. Point A + make shortcodes to display the items from portfolio and the single page. So the user when switch the theme will be able to use the shortcodes by creating a new page for each shortcode.

Also, doing only point B(only shortcodes) is also a good idea. I don’t know what buyers would prefer more?

271 posts WordPress Theme Devoloper
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+6 more
kayapati says

Can’t we create themes without CPT? We can manage Portfolio page using regular post, right? How it would be if we do like this?

http://blog.matthill.co/2013/custom-post-types-wordpress-themes-best-practice/



http://mikemcalister.com/custom-post-types-in-themes/

350 posts Gambit
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
+4 more
bfintal says

@Staff: Can’t we have an update on what or what not to do for Phase 2? Perhaps a more elaborate explanation / list of what to separate in the theme’s functionality. It’s almost November already. Currently, there has been a lot of unanswered questions and inquiries pertaining to that second phase, and we are just guessing on what to do. (I’m talking about elaborating on CPT and other functionalities aside from CPTs and shortcodes)

I for one am not yet implementing any changes for phase 2 since I might exaggerate what I should to separate into plugins.

29 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Had an item featured on Envato Market
  • Has collected 10+ items on Envato Market
+5 more
Softwebmedia says

@Staff: Can’t we have an update on what or what not to do for Phase 2? Perhaps a more elaborate explanation / list of what to separate in the theme’s functionality. It’s almost November already. Currently, there has been a lot of unanswered questions and inquiries pertaining to that second phase, and we are just guessing on what to do. (I’m talking about elaborating on CPT and other functionalities aside from CPTs and shortcodes)

+1

407 posts
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Located in Nepal
+3 more
RelStudios says

Can anybody tell me, should all CPT should resides into single plugin for we have to create each plugin file for each CPT ?

Thanks

350 posts Gambit
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
+4 more
bfintal says

Can anybody tell me, should all CPT should resides into single plugin for we have to create each plugin file for each CPT ? Thanks
From what I remember, @Japh previously replied that you can stick everything into a single plugin.

I hope the Envato staff clarify phase 2 soon.

407 posts
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Located in Nepal
+3 more
RelStudios says

Just heard some thought about custom post type plugin from justintadlock and now it’s time to asked you guys :

Let’s say I create a directory theme and had a CPT plugin called Listings, it has a lot of custom meta field which I use for search, custom google map.

You are using my theme and want to move to another theme in the same niche. My Listings plugin still work fine but the data and layout output to the front-end look very mess.
If you deactivated my plugin and use new theme with new Listings CPT plugin provide by the new theme author, the CPT data still there but all of custom meta field is different.
Can you tell me how you deal in this case. Please help me out of this :)

Exactly ! Right now i am also thinking of same problem :) Can anyone give better solution for this ?

60 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+3 more
DavidGuns says

Still confusing with CPT.
Example (I use CPT by Devin Price):
when switch to other theme(another wp theme creator), data is still stored in database but how about display? is it good?

but it’s okay when switch to theme that I created. Newbie here, CMIIW

Pls answer, thanks

1243 posts
  • Provided great contribution to our forums
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
Smartik says

Still confusing with CPT.
Example (I use CPT by Devin Price):
when switch to other theme(another wp theme creator), data is still stored in database but how about display? is it good?

but it’s okay when switch to theme that I created. Newbie here, CMIIW

Pls answer, thanks

According to what already was said, you shouldn’t care about front-end display when the user change the theme, your plugin should work only on backend, so the user can adapt it on front-end if he need it or unistall if not.

60 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+3 more
DavidGuns says


Still confusing with CPT.
Example (I use CPT by Devin Price):
when switch to other theme(another wp theme creator), data is still stored in database but how about display? is it good?

but it’s okay when switch to theme that I created. Newbie here, CMIIW

Pls answer, thanks
According to what already was said, you shouldn’t care about front-end display when the user change the theme, your plugin should work only on backend, so the user can adapt it on front-end if he need it or unistall if not.

hi @Smartik, thank you for reply. I was wrong think about it, just ignore front end display and start create theme :D

by
by
by
by
by
by