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

Emil Wallgren
Emil Wallgren
11,737 Points

page-portfolio.php defaults to index.php

Hi!

I just followed the steps in this lesson...but when I open the portfolio-page, it defaults to the index.php file. Anyone knows why? Common faults?

Thanks :-)

2 Answers

Hi Emil :),

First thing to check if that was me would be to go to the page in question via your admin side of things as if you were editing the content and then make sure you have the correct template selected on the right hand site to portfolio and not default :)

Craig

Emil Wallgren
Emil Wallgren
11,737 Points

Yepp, didnt even exist...Because I had made it the blog-page in settings->read. But once I removed it from that it list it worked out :-) Thanks.