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 How to Make a Website with WordPress Custom Post Types and Fields in WordPress Custom Post Types and Fields Quiz

Cameron Thompson
Cameron Thompson
3,617 Points

Answering php questions involving functions

Hi,

In the quiz, I am trying to input the answers regarding certain functions for custom post types, however, no matter how I write them, they always seem wrong, but if I understand the video, they should be right. e.g. The function to display a custom field should be: the_field(), right?

Am I just not laying out what is considered the full function? I've tried other iterations like including the php tags, but they don't seem to work either.

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi folks, this was my mistake. I had the answer inserted incorrectly, you should be all set now!

In general I try to allow answers both with and withouth the parenthesis.

Chris Dziewa
Chris Dziewa
17,781 Points

Yes, that should work, at least without the parentheses. I have sent feedback about the quiz saying that it is not working correctly.

Cameron Thompson
Cameron Thompson
3,617 Points

Great. Thanks for doing that. Hopefully they will be able to fix it. At least from the point-of-view of the concept, I wasn't wrong about what a 'function' is. :-).