0

I have a clean install with reading settings set to static page and blog index set to a page named 'Blog'. According to the codex home.php should be the template in use for the blog index, but instead it is using 'page.php'. Why could this be? I have no plugins installed.

1 Answer 1

0

Review the 'WordPress Theme Hierarchy' document here: https://developer.wordpress.org/themes/basics/template-hierarchy/

It explains how templates are selected according to function and availability. The chart is helpful.

3
  • According to the Template Hierarchy, OP is right, home.php should be used. So the question is, why is page.php being used instead?
    – Pat J
    Commented Mar 31 at 19:19
  • 1
    Then the theme is doing something different. No word on the theme, but if the problem doesn't happen with another theme, then it it a theme issue. Or an issue with the template OP may have chosen for a page (if a Page is set as the home page). Commented Mar 31 at 22:53
  • I'm using Underscores which the WP Starter theme so it is totally clean and should be obeying the code. Commented Apr 1 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.