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

Lindyanne Ehrnrooth
Lindyanne Ehrnrooth
10,730 Points

Custom fields not displaying on custom posts

I have re-watched the videos 5 times now and I still can't get anything but the title to appear on my custom posts. I have even copied and pasted the code from the project files into mine and still can't get them to display. The custom page home page shows the thumbnail (featured image) image ok but when you click through to the individual post only the title appears, no content. What have I missed?

Hi Lindyanne,

Sorry for the long delay in getting to your answer request to many people want Christmas emails making lol

Have you manages to get to the bottom of this?

Craig

3 Answers

Lindyanne Ehrnrooth
Lindyanne Ehrnrooth
10,730 Points

Yes thank you Craig, I did. I had not realised that I had to include the_field() for all of my many custom fields. I'm just stuck on displaying image fields now! Many thanks,