Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialshareyourpeace
3,244 PointsWe are using front-page.php as our home. But why doesn't wordpress choose home.php. ?
This is a conceptual question.
dashboard > customize > static page > select home.
Pleas explain why choosing 'home' does not mean home.php ?
1 Answer
Andrew Shook
31,709 Pointsthe home.php files is supposed to be used for listing all the posts in WordPress, while the front-page.php is supposed for a static home page.
shareyourpeace
3,244 Pointsshareyourpeace
3,244 PointsSo it is counter-intuitive ? We just have to get used to it ?
Andrew Shook
31,709 PointsAndrew Shook
31,709 PointsThe naming convention comes from WP starting out as a blogging platform. The "home page" on most older blogs where simply a list of all the new content added to the site. Then when WP started to become more of a CMS they needed a way to have a page listing all new blog posts and a way to have a front page so the named the static front page front-page.php.