Bird
0
0

You created a custom page template but it does not appear in the page editor template dropdown. What is the most likely cause?

medium📝 Debug Q6 of 15
Wordpress - Custom Theme Development
You created a custom page template but it does not appear in the page editor template dropdown. What is the most likely cause?
AThe template file is missing the correct header comment
BThe template file is placed in the theme root folder
CThe template file has a .txt extension
DThe page is published, not draft
Step-by-Step Solution
Solution:
  1. Step 1: Check template header comment

    WordPress requires the exact 'Template Name:' comment to list templates in the dropdown.
  2. Step 2: Verify file placement and extension

    File must be in theme root and have .php extension; missing header is the common cause.
  3. Final Answer:

    The template file is missing the correct header comment -> Option A
  4. Quick Check:

    Missing header comment = template hidden [OK]
Quick Trick: Always include 'Template Name:' comment for templates [OK]
Common Mistakes:
  • Using wrong file extension like .txt
  • Placing file outside theme folder
  • Thinking page status affects template visibility

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes