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

PHP

This example did not produce the "20 most recent" badges as the heading suggests, where is sorting by earned_date?

There seems to be a step missed where we would sort the JSON data by earned_date to find the most recent items. This would also save all the conditional markup needed for the special case of the first badge (assuming the user had earned over 20 badges).