[resolved] 3.5-RC1 home.php not used as expected (3 posts)

  1. TimeVortex
    Posted 3 years ago #

    When testing, I noticed the home.php file in my theme isn't being used when I set a static page as my homepage. Instead, I have to use page-home.php. Reverting the setting to latest posts does make WordPress use the home.php file again.

    Existing documentation seems to imply home.php is always used, hence this report.

  2. Amy Hendrix (sabreuse)

    Posted 3 years ago #

    home.php is used when your front page is a page of posts. If you're using a static page, the correct template to use is front-page.php. This has not changed in 3.5.

  3. TimeVortex
    Posted 3 years ago #

    My mistake. Thanks for pointing that out.

Topic Closed

This topic has been closed to new replies.

About this Topic