I'm building my own theme and so far so good.

I created a template and named it correctly but it doesn't appear in any drop-down or indeed there's even no page attribute option at all.

Do I need to add something to the functions file?

There is nothing either in 'screen options'

Thanks for all help

1 Answer 1


This works:

 * Template Name: Top Ten
 * Template Post Type: post, page, product

get_header();  ?>

I was missing the Template Post Type

  • Can you be more precise in the answer, what it was missing? Was it maybe the <?php? Or even the get_header()?
    – kero
    Commented Dec 9, 2019 at 18:57
  • 1
    Missing the "Template Post Type <<<<"
    – Henry
    Commented Dec 10, 2019 at 13:22
  • @Henry, In which file you have added the above code? Commented Apr 12, 2022 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.