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

JavaScript

I need to create a function to write html when my client make a new post in his blog.

Hi everyone! As I mention in the title, I need some help. My client asked me to do this, he has a row into the home page on the site that i'm developing. He asked me to show the lates post of his blog in this row, so I need to make a function that every time he write a post, appear into his home page into a card, with the img he choose, the title and the paragraph.

I want to learn how to do that, does anybody knows which course should I watch here in threehouse?

Thanks a lot for your response :)

1 Answer

Hi Federico,

My suggestion is, if you're maintaining any list to store the posts use prioritize / sorting on latest date to show the blog posts always top on the homepage list.