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 trialJørgen Juel
19,380 PointsWordpress Widgets Code Challenge
I've been stuck at this for quite some time now, and I just can't figure out what the problem with my code is.
It is the Code challenge under the "How to build a Wordpress plugin", "Wordpress Widgets Code Challenge", challenge 4 of 6 I'm stuck at. This is the code I think is right, but the code engine tell me is wrong:
extract( $args );
When I add the code below and click Check Work, I get the following error: Bummer! The first thing inside the widget method, use the extract function to make $args into local variables.
Can anyone point me to the right path?
Here is my entire code: edit: removed.
In advance, Thanks.
2 Answers
Jørgen Juel
19,380 PointsOkey, so When I moved on with the project, the next code challenge contained the proper markup. It turns out that you can't have a comment at the very first line after the widget function.
Bao Tran
Front End Web Development Techdegree Student 18,959 PointsConfirmed. Removed the comment solved the same issue I have as well.