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

portfolio.php not linking to right page.

I am following the Wordpress Theme tutorial, and I created a portfolio.php and a port-single.php, matching the work.php and single-work.php from the tutorial. In my theme, however, the portfolio.php is not linking to the port-single.php but is instead bringing up the single.php. I have reviewed the tutorial quite a few times, but I am unable to figure out how to correct this. Any ideas? Thank you..

1 Answer

Ok, I figured this out. If anyone else runs into this problem.. it is because I named my single page - port-single.php. WordPress did not know to go to this page. I renamed it to single-portfolio.php, and then Wordpress saw the page and linked to it.