Bird
0
0

A developer wrote this code in a theme file:

medium📝 Debug Q6 of 15
Wordpress - Theme Structure and Basics
A developer wrote this code in a theme file:
<?php get_footer; ?>

Why does the footer not appear on the page?
AThe function call is missing parentheses, so it does not execute
BThe footer.php file is missing from the theme folder
Cget_footer() cannot be called inside theme files
DThe footer is disabled by default in WordPress
Step-by-Step Solution
Solution:
  1. Step 1: Check the function call syntax

    The code uses get_footer without parentheses, so PHP treats it as a string, not a function call.
  2. Step 2: Understand function execution

    Without parentheses, the function does not run, so the footer template is not included.
  3. Final Answer:

    The function call is missing parentheses, so it does not execute -> Option A
  4. Quick Check:

    Function calls need parentheses [OK]
Quick Trick: Always use parentheses to call functions [OK]
Common Mistakes:
  • Omitting parentheses on function calls
  • Assuming footer.php is missing without checking syntax
  • Thinking WordPress disables footer by default

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes