Update: As with so many mysteries, the cause turned out to be extremely stupid. I had the file saved in a different theme's directory. Thanks to @a4jp.com
I'm building a theme using underscores. I've created a template file and added a template header at the top.
<?php
/**
* Template Name: Featured
**/
get_header(); ?>
I'm not getting a Template drop down under Page Attributes in the page editor, so I'm not sure if there's a problem with my formatting or something else.
I did try switching themes. The drop down appears in the other theme, but when I switch back to my custom theme, it's still missing.
page-
prefix for page templates. Before 3.4 this was the only way to name page templates. Now you don't have to use this naming convention for page templates, although thepage-
prefix is still totally valid