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 trialMatthew Newman
8,741 PointsQuiz question is wrong
Question: "When you show blog posts as the homepage, what template does WordPress first look to use?"
Treehouse says "home.php" is correct answer. When in fact front-page.php is the correct answer.
In the first video in this 3 part segment at 1 min in, Zac says that the front-page will be ignored (incorrect).
But then in the 3rd video Zac actually shows that front-page.php will be used for both static and blog posts front page.
The home.php page will be only used on a separate menu page and will show the blog listings.
Also, home.php will be used if their is NO front-page.php page.
The answer home.php would be valid if the question was stated this way:
"When you show blog posts as the homepage, (and their is NO font-page.php) what template does WordPress (Default too)?"
Just thought i would point this out.
I still love treehouse, and Zac still rules!! :)
4 Answers
Matthew Newman
8,741 PointsThe home.php page will be only used on a separate menu page and will show the blog listings.
Also, home.php will be used if their is NO front-page.php page.
The answer home.php would be valid if the question was stated this way:
"When you show blog posts as the homepage, (and their is NO font-page.php) what template does WordPress (Default too)?"
Michael Davis
10,035 PointsI'd sure feel better about the value of the courses if someone at treehouse monitored the forums and acted on errors like this (or at least responded with corrections). As it is now, if I don't get an answer the first time, I resort to google the question because too often there is an error in the question and someone has posted the correction in this forum.
In this case, Zac says in the video and it's also stated in the Codex template hierarchy that, the way the question is worded, front-page.php should be the correct answer, not home.php.
Mistakes are forgivable, but this was first brought to attention more than a month ago, hence the need for improvement.
Still loving treehouse though!
Zilu Cao
Courses Plus Student 2,703 PointsI agree with you. The video says front-page is still shown when you select blog posts as the homepage. It's replaced by home.php when no front-page.php files can be found.
Jake Flaten
5,910 PointsIt's actually still incorrect.
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsZac Gordon FYI - not sure if this is right, but thought you might want to take a look and respond :).