Welcome to the Treehouse Community
Looking to learn something new?
Questions on Custom Post Types
Hello all, I've been working on the 'Learn WordPress' track and I'm now working on my own theme. I'm fully comfortable using the custom post type plugins used throughout the tutorial but I'm wondering whether you are able to add more fields to the default post type? Another question I have is about applying categories to custom post types - any help would be appreciated!
Kevin Korte28,109 Points
I'm wondering whether you are able to add more fields to the default post type?
Yep. Just create a new post type, and set the fields to display when the post type is equal to "post"
applying categories to custom post types
If you're using the CPT UI plugin to create your post types, at the bottom of the advanced options, it gives you a checkbox for both categories and tags in the "Built-In Taxonomies" section. Check what you want, and then on the custom post type page, you'll have the same meta boxes like a default post type, and you can use the data in the same way.
Easiest way to do it, or you are putting you post types by hand in the function.php file?