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

General Discussion

Matt Campbell
Matt Campbell
9,767 Points

Displaying content from other pages on homepage

I'm sure I'll come across how as I work through all the learning adventures but I'm impatient and its distracting me.

On my homepage, I intend to have as part of my main content, a live feed style box of the most recent posts in my news section and my reviews section. They will be two separate pages.

All I'd like to know is which project will cover this or is it covered by html in the index file? If anyone can take the time to write a bit of code as a guide or point me in the direction of a good resource, it would be most appreciated. That is, if it isn't handled by one of the projects.

Thanks.

4 Answers

You can do this dynamically with a server-side scripting language such as PHP or Ruby, and statically with HTML (which in my opinion is a big waste of time, and an outdated practice.)

Check out the Ruby and Ruby on Rails courses!

Joe Powell
Joe Powell
3,933 Points

If you're not up for diving head first into ruby, which is a bit overkill for a news feed do the first few rounds of the php course and move onto wordpress. All you'll have to do is run a loop on the desired page from the blog, which can be setup in minutes, plus you'll be getting to grips with a cms which is invaluable to any designer/developer.

Matt Campbell
Matt Campbell
9,767 Points

Delayed response from me, didn't realise anyone had replied but thanks for the info.

I've just made a start on the php language side of things. I have a little experience tweaking wordpress things with php and am getting on with it ok. Much better then jquery so I'm pleased I don't have to use that!

Thanks again.

Joe Powell
Joe Powell
3,933 Points

Jquery is tricky, it's not something I've found I fully need to learn. But understanding the basics is essential. Usually for minor tweaks, but if you're using any php based cms, all of a sudden all the tags in the codex make a lot more sense, Wordpress makes it easy, but it can always be easier eh :) good luck