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
Boris Kamp16,660 Points
Page templates not recognized in wordpress
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?
Andrew Shook31,709 Points
Boris, 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.