Bird
0
0

You added get_footer('custom'); in your theme template, but the footer does not appear and the page shows an error. What is the most likely cause?

medium📝 Debug Q14 of 15
Wordpress - Themes and Appearance
You added get_footer('custom'); in your theme template, but the footer does not appear and the page shows an error. What is the most likely cause?
AThe file <code>footer-custom.php</code> does not exist in the theme folder
BYou must use <code>get_footer()</code> without parameters always
CThe function <code>get_footer()</code> cannot load custom footers
DYou need to register the custom footer in functions.php first
Step-by-Step Solution
Solution:
  1. Step 1: Understand how get_footer('name') works

    It tries to load footer-name.php from the theme folder.
  2. Step 2: Identify the cause of error

    If footer-custom.php is missing, WordPress cannot find the file and throws an error.
  3. Final Answer:

    The file footer-custom.php does not exist in the theme folder -> Option A
  4. Quick Check:

    Missing footer-custom.php = A [OK]
Quick Trick: Check if footer-custom.php file exists before calling get_footer('custom') [OK]
Common Mistakes:
  • Thinking parameters are not allowed in get_footer()
  • Assuming registration is needed for custom footers
  • Ignoring missing file errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes