Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Boris Kamp
16,660 PointsPage templates not recognized in wordpress
Hey guys,
I have been busy building a Wordpress site and have been working working with custom page templates like this:
<?php /*Template Name: Mijn AWF*/ ?>
the file itself is named page-mijnawf.php
and located in the theme's root.
It was working correctly, Im 100% sure of that. Somehow it stopped working and now Im unable to use the templates.
The pages I created in the meantime still work tho, so I have no idea what's causing this strange issue! do you guys have any idea where to start?
Thanks!
2 Answers

Andrew Shook
31,709 PointsBoris, I used the code you pasted above and It worked for me. Did you recently update wordpress? I've read articles in the past about stuff like this happening when people updated. If so, download a fresh WP install, make a copy of your wp-content folder, and then replace you current install with the fresh one. After you do the replacement, taken all the files from the copied wp-content folder and place them in the empty wp-content folder of the fresh install.

Boris Kamp
16,660 PointsDo you have any idea on what might be going on here Andrew Shook ?
Boris Kamp
16,660 PointsBoris Kamp
16,660 PointsSounds like a good suggestion but unfortunately that does not work... Here's what I did:
after this I checked in the backend and page templates still won't show up! This got me so confused.
Thanks for trying to help me out again!