236 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Envato Studio (Microlancer) Beta Tester
GradaStudio says

i have two questions i want to ask as i am working on a premium theme.

1. Is it good thing to integrate custom post types in theme (like portfolio). because if someone changes theme data will be lost(correct me if i am wrong)

2. I want display some details above breadcrumbs an striking theme http://kaptinlin.com/themes/striking/blog/ how can i do that (maybe custom field or any other better option)


3423 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark Volunteer moderator says

Hi atinder,

1. Yes, custom post types are a good thing in general. You’re right that it can be an issue if a user switches themes (the data won’t be lost but it’ll become inaccessible in all likelihood), but that’s just a fact of using advanced WP themes. It does mean, that to the extent you can, storing and cataloging content in standard ways will help the user if they ever decide to switch. For example, you would want to analyze whether certain functionality might be best implemented via Custom Post Type or via Post Format; because Post Format is standardized, if your piece of functionality makes sense to implement that way it can help your users out down the road (see http://markjaquith.wordpress.com/2010/11/12/post-formats-vs-custom-post-types/ for more details on making this determination).

2. That depends on the “details” you want to display, but in general custom fields are a good way of gathering post-specific data. For usability, make your custom fields into meta boxes.

Good luck with your theme development! :)

2050 posts
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Exclusive Author
  • United States
Landonw says

It won’t be lost, it just won’t appear with other themes. If you switch back to it, you’ll see it again