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
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.
-
According to the Template Hierarchy, OP is right,
home.php
should be used. So the question is, why ispage.php
being used instead?– Pat JCommented Mar 31 at 19:19 -
1Then 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