WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. TimeVortex
    Member
    Posted 1 year 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. 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
    Member
    Posted 1 year ago #

    My mistake. Thanks for pointing that out.

Topic Closed

This topic has been closed to new replies.

About this Topic