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 trial

WordPress

shareyourpeace
shareyourpeace
3,244 Points

We 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
Andrew Shook
31,709 Points

the 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
shareyourpeace
3,244 Points

So it is counter-intuitive ? We just have to get used to it ?

Andrew Shook
Andrew Shook
31,709 Points

The 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.