• I’m having a little difficulty understanding template structure even after reviewing topics in the codex, and I think the reason is because of terminology…and being a newbie.

    If a WordPress site has a blog page (a post page), what template does it use, archive.php, index.php or something else?

    If clicking on a link to a category does the page that displays all the posts with the category use archive.php (assuming no category specific template php file is created)?

    After writing this out, I see that my question is really what is the difference between archive.php and index.php. Also, what is the proper term for a page where posts are displayed (whether because the page is post page or because a category link was clicked)? Is this page called an archive page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If i’m reading correctly:

    —- Templates for the blog pages/home pages/front page
    index.php
    front-page.php
    home.php
    —-
    You are correct on clicking on the archive page, it does
    index.php (or)
    if (exists) archive.php

    The difference is the index.php is the catch-all if none of the others are found.

    you could pretty much make a theme with just bare minimals with the index.php handling everything and a couple others

    the proper term for a page where posts are displayed .. “the posts page / the blog page” which is denoted as such in the settings -> reading .. they are kind of the one and same in terminology

    The posts page refers to the page that the blog loop is being executed on.

    Thread Starter thisismyalias

    (@thisismyalias)

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Clarification of structure (particularly template structure)’ is closed to new replies.