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 trialRobert Powers
2,232 PointsAnswer to: function to echo out the link to a post or page within the loop?
I answered with the_permalink() response was Bummer....
Then tried get_permalink() response also Bummer
Appreciate any help....I'd like to know the correct answer so I can look up that function and review it.
2 Answers
jcorum
71,830 PointsI just tried the_permalink and the editor accepted it. Note that you should not enter () after the function name.
Robert Powers
2,232 PointsThanks for the response. In future quizzes I'll not include the ()...
Robert Powers
2,232 PointsRobert Powers
2,232 PointsDetermined that .........the_permalink was the correct answer.........I had answered.......the_permalink()......
Had the same problem with another answer in same quiz concerning post/page titles..... I answered the_title()........got a Bummer.......turned out.......the_title..... without the () was accepted as correct answer
There appears to be little consistency in whether the () should be included in the function answer, or I'm not understanding where you should or shouldn't use the ()....?