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 trial

WordPress

Adrian Bueno
Adrian Bueno
300 Points

How 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

Austin Whipple
Austin Whipple
29,725 Points

Two 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
Adrian Bueno
300 Points

would you mind explaining step by step?

Austin Whipple
Austin Whipple
29,725 Points

Both of those plugins have better documentation than I'd be able to recreate here, but the basic steps are:

  1. Install WordPress
  2. Install the plugin of your choice.
  3. Use the plugin (according to their documentation) to create a new custom post type.
  4. 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.