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 Single Page

Gabriel Ward
Gabriel Ward
20,222 Points

Description not showing up

When I add my title, description, and images into a portfolio post, I click update, and the description field goes blank, and then doesn't show up when I view the portfolio piece's page. Does anyone have any advice on this?

3 Answers

Michael Peterman
Michael Peterman
19,087 Points

Hey Gabriel, I'm assuming you're using ACF (Advanced Custom Fields) to create the field(s) that's not saving. This might not be the case with your site, but in my experience that can happen if the name of the field has been used before and / or deleted in the past. When this happens, sometimes ACF gets hung up trying to reference the values from another field (possibly deleted field) with the same name. Try renaming your description field (something like "portfolio_description" to test). Try re-entering values into the field and saving. Hope this helps.

I had this problem too. Check and see if you have the line: <?php the_post() ?> in your single-portfolio page. I did this and it breaks the php and doesn't seem to show any of the php content after the break..

Ekramy M.Ali
Ekramy M.Ali
17,748 Points

I have the same problem ..I tried to rename the field to portfolio_description and test the description not appear .

Michael Peterman
Michael Peterman
19,087 Points

Hey man, that's no fun :( Would you be able to post more info? If you could post your code and maybe a screenshot of the ACF field group you're working with I might be able to point you in the right direction.