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 is not appearing

When i click on add new portfolio from portfolio then title isn't appearing only description and add media is displaying???

4 Answers

Jeff Kinley
Jeff Kinley
21,207 Points

Another thought is that you have to have this in your page template:

<?php the_title(); ?>

Let me know how you make out.

Jeff Kinley
Jeff Kinley
21,207 Points

Without more detail, I am not sure we can be of much help, but one thought is this: In this project, the Advanced Custom Fields (ACF) will provide a place to add a description and a place to add media (image) for the page. These are the only two fields that were added to the ACF plugin.

The page title, however, is still a inherent to WordPress. To have the page title display, you have to create a new page, give it a title, and then select the "Portfolio" template from within Page attributes in the WordPress admin. Then you should have your portfolio page with the WordPress title displayed at the top and the two custom fields displayed below.

Stanley Thijssen
Stanley Thijssen
22,831 Points

Hey Jazib,

Make sure you have checked everything you want your portfolio items to have at the support section in the editor screen of your custom post type.

Can u give me ur email or skype id etc. so that i can share files to u if u have some time?

Stanley Thijssen
Stanley Thijssen
22,831 Points

sure if u have questions u can hit me up on my skype stanleyth1.

Thanks!I added u.