Bird
0
0

A developer wrote this at the top of a custom template:

medium📝 Debug Q7 of 15
Wordpress - Custom Theme Development
A developer wrote this at the top of a custom template:
<?php
/* Template Name Landing Page */
?>

The template does not appear in the editor. What is wrong?
AMissing colon ':' after 'Template Name'
BUsing PHP tags instead of HTML comments
CFile name is incorrect
DTemplate name is too long
Step-by-Step Solution
Solution:
  1. Step 1: Inspect template header syntax

    The header must have 'Template Name:' with a colon to be recognized.
  2. Step 2: Identify missing colon

    The given header misses the colon, so WordPress ignores it.
  3. Final Answer:

    Missing colon ':' after 'Template Name' -> Option A
  4. Quick Check:

    Correct header syntax = colon after 'Template Name:' [OK]
Quick Trick: Always include colon after 'Template Name:' [OK]
Common Mistakes:
  • Omitting colon in header comment
  • Confusing PHP and HTML comment styles
  • Assuming file name affects template detection

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes