Skip to main content

In WP the term `homepage` can be a bit confusing. It is used in the normal way, for the main page of a site, but sometimes also for the page that contains the newest posts, even if this is not the main page of the site.

In WP the term homepage can be a bit confusing. It is used in the normal way, for the main page of a site, but sometimes also for the page that contains the newest posts, even if this is not the main page of the site.

In the template hierarchy this means that home.php is not always the template for the homepage in the sense of main page. If there is a template called front-page.php this takes precedence.

When neither home.php nor front-page.php exists WP will use index.php as the template for the main page - unless that page is a static page and there is a template called page.php, in which case the latter will be used.