Bird
0
0

Which of the following is the correct syntax to include a custom footer template named footer-custom.php in a WordPress theme?

easy📝 Syntax Q3 of 15
Wordpress - Custom Theme Development
Which of the following is the correct syntax to include a custom footer template named footer-custom.php in a WordPress theme?
Aget_footer('custom');
Binclude_footer('custom');
Cload_footer('footer-custom.php');
Dfooter_template('custom');
Step-by-Step Solution
Solution:
  1. Step 1: Recall the function to load footer templates

    WordPress uses get_footer() to load footer templates.
  2. Step 2: Understand how to specify a custom footer

    Passing a string to get_footer('custom') loads footer-custom.php.
  3. Final Answer:

    get_footer('custom'); -> Option A
  4. Quick Check:

    Custom footer uses get_footer('name') syntax [OK]
Quick Trick: Use get_footer('name') to load footer-name.php [OK]
Common Mistakes:
  • Using non-existent functions like include_footer
  • Passing full filename instead of suffix
  • Confusing footer template loading with other functions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes