16 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Brazil
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
theux says

^ well the point of having CPTs inside a plugin is that user can access the data when he/she changes theme.

Yes and no. You still can have your CPTs inside a plugin and make them tied to your theme. Just because your CPT is a plugin, it doesn’t mean that it will work plug and play on other themes. If the intention in having CPT in plugins is to ‘protect the buyers’; Envato will really need to review all themes and make sure that the authors don’t tie the CPTs to their theme in someway.

954 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Won a Most Wanted contest
+3 more
aleluja says

They don’t have to be plug’n’play but the content must be accessible (in the dashboard) when the theme is changed.

463 posts
  • Helped several times protecting Envato Market against copyright violations
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
+7 more
Jaynesh says

If the theme uses standard naming conventions for the custom post types, then the data should be available when switching themes.

For example, if you have a custom post type for portfolios, all themes should use the same naming conventions for this custom post type. Therefore no plugin should be required.

954 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Won a Most Wanted contest
+3 more
aleluja says

So it’s up to guessing without control? What’s so big deal to put CPT in a plugin?

463 posts
  • Helped several times protecting Envato Market against copyright violations
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
+7 more
Jaynesh says

So it’s up to guessing without control? What’s so big deal to put CPT in a plugin?

Let’s say the Portfolio CPT now has to be put into a plugin. Now every user will need to install the plugin to use the CPT.

When the buyer switches themes, they will now have access to the data of the previous CPT. That is great but now the buyer will have to install ANOTHER plugin for another Portfolio CPT.

This makes the entire purpose of using plugin for CPT useless because it may not be tailored to another theme.

If all themes use the same naming convention for common CPT, that data will always be available when switching themes.

954 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Won a Most Wanted contest
+3 more
aleluja says

Well until there are standards for the naming it should’t be let to luck. I (and themeforest and wordpress community) don’t want to take a risk between losing access to data and having everything work nicely. I agree it would be super-awesome but currently it’s just too risky.

463 posts
  • Helped several times protecting Envato Market against copyright violations
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
+7 more
Jaynesh says

Well until there are standards for the naming it should’t be let to luck. I (and themeforest and wordpress community) don’t want to take a risk between losing access to data and having everything work nicely. I agree it would be super-awesome but currently it’s just too risky.

Nothing is left to luck here. If TF can enforce plugins they can enforce standards for naming.

109 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+4 more
designedbydash says


Well until there are standards for the naming it should’t be let to luck. I (and themeforest and wordpress community) don’t want to take a risk between losing access to data and having everything work nicely. I agree it would be super-awesome but currently it’s just too risky.
Nothing is left to luck here. If TF can enforce plugins they can enforce standards for naming.

I believe the idea is that themes in future should play nicely with all WP themes, including ones from WP.org and other sites. Therefore enforcing a naming convention wouldn’t work for obvious reasons.

2 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Spain
rodz says



Well until there are standards for the naming it should’t be let to luck. I (and themeforest and wordpress community) don’t want to take a risk between losing access to data and having everything work nicely. I agree it would be super-awesome but currently it’s just too risky.
Nothing is left to luck here. If TF can enforce plugins they can enforce standards for naming.
I believe the idea is that themes in future should play nicely with all WP themes, including ones from WP.org and other sites. Therefore enforcing a naming convention wouldn’t work for obvious reasons.

Having a standard naming convention for CPTs is a discussion that until now haven’t reached any consensus in WP community (as far as I know). Although leading developers are all for it.

ThemeForest is in a position where she could take the lead.

The biggest problem I see is that each theme can take a different approach when handling Custom Fields and Meta Boxes. But, as long as it is not serialized data, after switching themes, the user should be able to access the previous data in the default Custom Fields meta box.

A couple of discussions at [wp-hackers] and a great quote
Basically a plugin using Custom Post Types should follow Postel’s Law: “be conservative in what you do, be liberal in what you accept from others”
http://wordpress-hackers.1065353.n5.nabble.com/Custom-Post-Types-and-pending-incompatibilities-td24661i20.html#a24674
http://wordpress-hackers.1065353.n5.nabble.com/Community-conventions-for-custom-post-types-td39285.html#a39313
642 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

Naming your functions ( in a proper way ofcourse ) and post types should always be left free for everyone.

CPT naming has nothing to do with good theme compatibility for plugin based options and features. If i call a CPT ‘portfolio’ or ‘mygreatpcptxue’, the plugin still has to work perfectly on different themes.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by