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 WordPress Theme Development The WordPress Loop The WordPress Loop Quiz

Robert Powers
Robert Powers
2,232 Points

Answer 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.

Robert Powers
Robert Powers
2,232 Points

Determined 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 ()....?

2 Answers

I just tried the_permalink and the editor accepted it. Note that you should not enter () after the function name.

Robert Powers
Robert Powers
2,232 Points

Thanks for the response. In future quizzes I'll not include the ()...