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 Coding Your Own Custom Post Type Templates

title custom field

I've been following the tutorial with the finished code, so I know it is not a coding issue. I've tried adding images but some things already look different from the tutorial. I don't seem to have a "Title" field (as it shows in minute 4:30), and when I add one, it doesn't recognize it and it saves my images to auto draft. Anybody can help me with this?

I was having the same issue. The solution was not related to Custom Fields. It was because I had to go into CPT UI, then Edit Post Types, scroll to the bottom to Supports and tick Title.

2 Answers

Hi Josefina,

In your Portfolio custom fields section (seen at 4:28 in the video) under the field list box at the top will be a Location box. Ensure that is set to Post Type equal to Portfolio. If that's ok, scroll down to the Options box and ensure the Title is not hidden. This will be determined by whether the checkbox is checked or not. Amend, save and recheck the Portfolio post type.

Hope that helps :)

-Rich

That worked Rory, thanks!