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

Adding Content in Custom Places - Part 2 -- 'posts_per_page' (Friendly Reminder)

At the end of Adding Content in Custom Places - Part 2, there is a change made in the Treehouse code that is not spoken about.

'posts_per_page' is added to the Query. Just a friendly reminder. Because, as a noob, I was confused as to why only one of the Treehouse example's boxes were showing, while all of mine were.

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hey!

I talk about it in the part 1 of the video when creating the testimonials include. Then we copy that testimonials code and paste it into part 2, where you're right, I don't explain it again.

Hope this helps :)

Jeesun Kim
Jeesun Kim
4,866 Points

Ahh I guess I need to pay more attention! I had this problem too but I solved it. php is slowly making sense to me now.