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 trialJonny Riddel
8,160 PointsAdding Content in Custom Places - Part 2
I know this is probably a simple fix but I can't work it out. I've been following the wordpress theme tutorial and everything has been going well until the very end of this video. It is when you finally get the recent post up with the image on the right side. Instead of having the recent post with one image on the side, all four of the images are shown on the page, and I can't work out how to just have the one image.
http://www.flickr.com/photos/69309748@N08/9160364210/
that is what it looks like and obviously its only supposed to have the one image
2 Answers
Matt Campbell
9,767 PointsI think you'll be mending to use posts_per_page but without seeing your code or watching the video I can't be sure.
Zac Gordon
Treehouse Guest TeacherI just uploaded the source code for this. Try taking a look and see if it solves the problem.
Jonny Riddel
8,160 Pointsits ok. i got it to work in the end. i just added a posts_per_page = 1 and that did the trick. thanks anyways
Jonny Riddel
8,160 PointsJonny Riddel
8,160 Pointswell here's the code for front_page.php anyways.
http://www.flickr.com/photos/69309748@N08/9165116596/
I had a look at the posts_per_page to see if I had done something wrong like type 'post_per_page', or leave a comma after the number, but I haven't