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 WordPress Theme Development Custom Post Type Templates in WordPress The Portfolio Homepage

Why does my portfolio titles become "Auto Draft" instead of a title of my choosing?

When I add a new portfolio piece under the post_type "Portfolio" the name/title of this portfolio piece become "Auto Draft" instead of whatever I want. Why is this happening?

3 Answers

Simon Chercka
Simon Chercka
23,809 Points

The video is using an older version of Custom Post Types (obviously). I think this is causing the problem - I solved it by editing the CPT, opening its settings and under 'Supports' checking off the 'Title' checkbox. This made it work. Seems like this may have been a default setting when the video was made, but now is a necessary.

Leigh Maher
Leigh Maher
21,830 Points

Go into CPT UI > Add/Edit Posts Types > Edit posts types (tab) > Select the post type from the drop-down > Click select > Click Edit post type > Click on settings and go down to supports > Tick the title box. Then you should see the title field appear in the custom post editor.

Thiago Ponte
Thiago Ponte
1,373 Points

Leigh many thanks, it really got me wondering too.