Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAmy Kang
17,188 PointsSelling Themes with Custom Post Types?
How do you sell themes with custom post types? I uploaded a theme I developed locally to a live server and saw that I had to re create the custom post types on the live version. Is there a way to include the custom post type information as well so clients don't have to re build it? I'm looking for an option where I don't have to code the post type into the functions file.
Thanks.
Amy Kang
17,188 PointsTore Dahl Okay I see...
1 Answer
Lisa Wells
1,082 PointsIf you create a plugin that adds your custom post types, the user should be able to change themes and keep the custom post types as long as they can activate your plugin.
Tore Dahl
4,727 PointsTore Dahl
4,727 PointsYou don't want to do that. If you build it into the theme, and then if the customer changes themes, even if just to test another look and feel, they'll lose their custom post data.