I'm confused by the template hierarchy in WordPress. I have front-page.php
in a theme I'm developing. It looks great and it works, but then when a user clicks 'Older Posts', it just shows the same content as before, but the URL is changed to ?paged=2.
Looking at the diagram about Template Hierarchy on Wordpress Codex, since the second page is not the front page, I'd expect it to fall through front-page.php
to either home.php
or index.php
, but it's not doing that; it's just loading front-page.php
over and over again.
So how can I load, say index.php
, for every page other than the front page?
And also, am I crazy for expecting what I expect?
The second question might be subjective. Please only answer the first if you think I am crazy.