• Hello,

    I am using a custom WordPress theme which includes:
    index.php
    page.php
    home.php

    I have two wordpress pages:
    Home
    Blog

    In my wp-admin reading options, I have set
    Front page displays: A static page.
    Front page: Home
    Post page: Blog

    Simple enough.

    What I expect to happen is that when viewing the website’s home page, it will load home.php from the theme and the content of the “Home” page.
    And I expect that when I view the blog page, it will load page.php from the theme and the content of all wordpress posts.

    However, when I view the website’s home page it successfully shows the “Home” page content, yet it uses page.php from the theme.
    And when I view the blog page it uses home.php from the theme.

    I am not sure why this is occurring. Any advice?

Viewing 1 replies (of 1 total)
  • Home will use a page template – the default page template if you haven’t assigned a custom one.

    Blog will use the index.php template file.

    This is the default behaviour for WordPress sites with a static front page.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Blog Page’ is closed to new replies.