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

Site not found - Wordpress Theme Dev - Page.php

I copy the content of index.php into a page.php file.

Thereafter I create page in the wordpress admin.

When I try to access it, it simply doesnt work.

Gives me a "not found" error.

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Try going into your permalinks and resaving them them. Then go to the admin area, bring up the page and click View page and see what comes up.

If that doesn't work, try removing the code from the page.php file (not Page.php!) and put in some static test that says "Test" and try to view the page again. If that doesn't work, double check you have the correct theme active!