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 trialsamiff
31,206 PointsWP Version 4.9 Only Page Template Bug Workaround
Anyone following this course while using WordPress version 4.9 might run into a bug where they are unable to see the dropdown menu for page templates. This is the official bug thread https://core.trac.wordpress.org/ticket/42573
A temporary fix until this issue is patched in the future would be to include the following code in the functions.php file: https://gist.github.com/westonruter/6c2ca0e5a4da233bf4bd88a1871dd950
1 Answer
Konrad Traczyk
22,287 PointsHi,
Simpler way to deal with it is update version of your theme in styles.css, or set WP_DEBUG to true. You don't need additional code this way.
/*!
* Theme Name: Example
* Author: Example
* Author URI: http://example.pl
* Version: 1.7 <-- This one
*/