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

Custom Post types

I am in the "How to Make a Website with WordPress" project with Zac Gordon, module 4 "Custom Post Types and Fields in WordPress".

I actually tried a month ago to pass this 5 question quiz, and after about 5 attempts and watching the videos 3 times, couldn't do it. So I threw my computer out the window, got a baseball bat, and office space'd it. (kidding)

After a month I decided to give it another go. I've watched all three videos again, gave the quiz another shot, and after 3 more attempts I still cannot pass.

Being that it is multiple choice and the fact that I've now watched the videos 4 times through, I am starting to question my sanity.

Anyone else struggled with this section?

I have done these videos. What exactly are the questions, just post a link to the quiz I will try to explain them to you. Just popping out for half an hour but will reply soon.

Mainly the two fill in the blank questions. Not sure if I am use the correct answer with improper syntax or if I'm just in left field all together.

I am in this section and got stuck displaying exactly what he has in the video. I went back to level 1 and I am trying to add my allisongrayce.com folder to Sublime 2. I think this is where I went down the wrong path. Also, what does he mean by demo content. I have taken the quiz. What questions in particular?

7 Answers

Found the answers

To create custom loops in our WordPress templates, we use the WP_Query function. (1:14 Into Custom Post Type Templates Video)

To display custom post fields in the template code we use the the_field function

Sean May
Sean May
9,145 Points

Thank you for this. These quizzes are usually great, but this one was baffling. Most of the stuff in the quiz was not covered at all in the videos, or if it was, it was covered very, very briefly.

To display custom post fields in the template code we use the ____ function

answer is : the_field

.

Will have a look now

The other type question in the quiz can be found in the video just before the quiz "Custom Post Type Templates" at about 2:40. Answer was also reported as bug in the quiz but has now been fix.

https://teamtreehouse.com/forum/wordpress-quiz-custom-post-types

Rowan Sims
Rowan Sims
4,898 Points

Damn I thought it was just me. I did the same thing (minus the baseball bat). Thanks for answering these for me. I was going spare!

im beginning to think this treeehouse is a pipe dream...how many of you got a job from here so far? we see a few people on youtube saying its great but how many in reality who had NO coding and NO school? all this content looks old and when i search from help the answers here in the community are from years age!