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

Mohammed Asif Anwar
Mohammed Asif Anwar
5,380 Points

The function call get_sidebar(‘blog’) would call a file named ?

The function call get_sidebar(‘blog’) would call a file named ? cant figureout

3 Answers

Mohammed Asif Anwar
Mohammed Asif Anwar
5,380 Points

i tried get_sidebar but is wrong

Kevin Korte
Kevin Korte
28,149 Points

Yes, get_sidebar is the function name, it's not the file.

I'm going to help you by learning to read the documentation; I'm not going to give you the answer flat out because that won't help you much here.

get_sidebar is the function call that is part of Wordpress. Go back to the link I provided and read through it.

The provide you the answer in the description section, in the usage and parameters section, and the first example all shows what wordpress does if you pass in an argument to the function.

In the example they are using the $name variable. For you it would be the string "blog". In either case, you should be able to extract what file get_sidebar( 'blog' ) is getting.

ANTONIO ALTAMIRANO
ANTONIO ALTAMIRANO
9,428 Points

Thank you for the reference. I forgot to enter the file extension.