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 How to Build a WordPress Theme Converting Static HTML into WordPress Templates Convert Custom Post Type Details Page

Eric Mayfield
Eric Mayfield
3,312 Points

Answer to question on quiz seems wrong

On the quiz related to this section, the question "What parameter does the_field() function accept?" only passes if you give it the answer "The custom field slug".

It seems to me that one of the other options "The custom field name" would be the correct answer as that name comes directly from the Custom Field table as pasted here "Field Name", eg. for our Work custom field, the column Field Name has "url, description, button_color, etc.", which are the exact parameters we provide into the_field() function.

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

Super late response here, but it is important to understand the difference in terms between name and slug in WordPress as the slug is what is called programatically in our code and name is what displays for labels in the admin area. In general they are not exchangeable.