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 trialNiall Quinn
11,956 PointsCreating multiple post templates for each of the portfolio pieces
I want to be able to display a different layout dependent on the specific portfolio piece. So I need to have more templates that are based on single-portfolio.php but not exactly sure how to do this with this theme.
1 Answer
Mathieu Delporte
8,097 PointsYou'll need to create different template files depending on the type of piece you want to show. On the right hand side of each post or page you can select the right template.
Are you using a theme or did you develop the theme yourself? It's just a matter of creating different template files and you should be good to go.