Bird
0
0

Given these files in a theme: front-page.php, home.php, index.php. What template will WordPress use to display the blog posts index if no static front page is set?

medium📝 component behavior Q4 of 15
Wordpress - Theme Structure and Basics
Given these files in a theme: front-page.php, home.php, index.php. What template will WordPress use to display the blog posts index if no static front page is set?
Afront-page.php
Bhome.php
Cindex.php
Dpage.php
Step-by-Step Solution
Solution:
  1. Step 1: Understand blog posts index template

    If no static front page is set, WordPress uses home.php for blog posts index.
  2. Step 2: Check fallback order

    If home.php is missing, WordPress falls back to index.php.
  3. Final Answer:

    home.php -> Option B
  4. Quick Check:

    Blog posts index template = home.php [OK]
Quick Trick: Blog posts index uses home.php if no static front page [OK]
Common Mistakes:
MISTAKES
  • Choosing front-page.php for blog posts index
  • Assuming index.php is always used first
  • Using page.php incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes