• I see:

    [[[

    Blog Home

    Displays the latest posts as either the site homepage or as the “Posts page” as defined under reading settings. If it exists, the Front Page template overrides this template when posts are shown on the homepage.

    ]]]

    How one the same template may display “either” the site homepage or as the “Posts page”? Isn’t a template about a single format of displaying? I am confused how Blog Home template can be both the site homepage or as the “Posts page”.

    How to obtain Front Page template? Should I just create a new template with this name?

Viewing 1 replies (of 1 total)
  • Hi there,

    This is because of the template hierarchy mechanism.

    By default, WordPress sets your site’s home page to display your latest blog posts. This page is called the blog post index. You can also configure your blog posts to display on a separate static page. The home.php template file is used to render the blog posts index, whether it is being used as the front page or on a separate static page. If home.php does not exist, WordPress will use index.php.

    The front-page.php template file is used to render your site’s front page, whether the front page displays the blog posts index (mentioned above) or a static page. The front page template takes precedence over the blog posts index (home.php) template. If the front-page.php file does not exist, WordPress will either use the home.php or page.php files depending on the setup in Settings → Reading. If neither of those files exists, it will use the index.php file.

    Find out more on template hierarchy in detail here: https://developer.wordpress.org/themes/basics/template-hierarchy/#the-template-hierarchy-in-detail

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.