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 trialMike Davidson
8,229 PointsRecent Project layout problem
Hi, I cannot get the recent project to display on the home page correctly. I got the same initial error that Zac did whereby the duplicated grid caused all four projects to show up in a small grid on the page. I removed the duplicate grid in front-page.php but now all four projects are showing on the page at the same size they do on the work page. Some of them are slightly different heights too. I have tried everything I can think of to show only one project on the page but I cannot work out how to do it. Please can anyone help. Thanks. Mike
Aaron Hultquist
17,821 PointsYou need to add: 'posts_per_page' => 1 to the recent projects array on front-page.php.
This code was not included when you copied the loop from work.php, was not addressed in the video, but is visible in the video when Zac goes back to front-page.php to delete the extra grid_6 div (11:34 in the video).
Justin Black
24,793 PointsJustin Black
24,793 PointsHaving not gone through these PHP Videos, as I don't need them - I already know the ins and outs of PHP, it would be helpful to see your code on this and then someone else or I would be really able to help you track down where you've taken a bad step and help you to resolve your issues and understand were you've gone wrong to prevent it in the future.