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

'Portfolio Piece' is not displayed under Portfolio tab

I followed installing both plugins accordingly but when I'm in the dashboard and click on Portfolio, there is no 'Portfolio Piece' option.

1 Answer

Hi Jane,

Sorry for the delayed reply. You may have already sorted this now but just in case not...

This looks to be due to the latest update of CPT UI. This is how mine is set up in the current version of CPT UI.

  • From the WP Admin hover over CPT UI.
  • Select Add/Edit Post Types.
  • Set Post Type Slug to portfolio.
  • Set Plural Label to Portfolio.
  • Set Singular Label to Portfolio Piece.
  • Click the arrow next to Labels on the right hand side.
  • It will default to Add New but there is a field next to this where you can amend this to be Add New Portfolio Piece, etc.
  • Repeat this process for any other fields you'd like.
  • Click Add Post Type.
  • You may need to refresh but you should see Portfolio appear in the left menu.
  • Hover over this and you should see Add New Portfolio Piece.

Hope that helps :)

-Rich

Thanks for the answer! I was able to figure it out the mistake I made and it worked.

No problem :)