Please consult the Template Hierarchy, and ensure that you are using the correct names for template files.
index.php
should be left as the default fallback for all other template files- The site front page template file name is
front-page.php
. You need to rename yourhomepage.php
asfront-page.php
- The blog posts index page template file name is
home.php
. WordPress will always and only ever use eitherhome.php
orindex.php
for the blog posts index (unless the blog posts index is set to display on the site front page, andfront-page.php
exists). No other template files will be used, regardless of what you name them, or whether or not you assign them as custom page templates to the page used to render the blog posts index.
Step-by-step:
- Create
front-page.php
as your custom front-page template - Create
home.php
as your blog posts index page template - Leave
index.php
alone - Create two static pages, of any name; e.g. “Front Page” and “Blog”
- Go to
Dashboard -> Settings -> Reading
- Set Front Page Displays to a static page
- Set Front page dropdown to “Front Page” static page created in step 4
- Set Posts page dropdown to “Blog” static page created in step 4