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 trialAdrian Bueno
300 PointsHow can i create a custom post type?
Create a plugin that registers a custom post type, use this custom post type in your site
2 Answers
Adrian Bueno
300 Pointsthank you
Austin Whipple
29,725 PointsTwo great plugins for creating custom post types:
Definitely easier to use a plugin to manage custom post types rather than coding them into a theme. Plus, if you ever switch themes, the types are lost if not created using plugins.
Adrian Bueno
300 Pointswould you mind explaining step by step?
Austin Whipple
29,725 PointsBoth of those plugins have better documentation than I'd be able to recreate here, but the basic steps are:
- Install WordPress
- Install the plugin of your choice.
- Use the plugin (according to their documentation) to create a new custom post type.
- Create a new post of that type (the plugins add new options to the WordPress Dashboard sidebar).
The plugins make it very simple and have lots of supporting documentation I recommend you check out.