What’s the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used?

What are the differences between these two template files (located in the theme folder)?
Do they both behave the same way, the only difference being the priority of home.php?

Related posts

Leave a Reply

3 comments

  1. home.php is what your site will use for whatever page you set be the “Posts Page” under the reading options in wp-admin. If you set a static page to the front page, you would use front-page.php if you wanted it to be styled specially.

  2. Be aware that using home.php instead of index.php as the front page will disallow an usual posts-from-all-categories page in your blog. In other words, there’s no easy way to get to index.php if you use home.php.