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 trialEdely Gomes
4,485 Points<?php bloginfo('name'); ?> doesnt return the site name.
I don't know why, but <?php bloginfo('name'); ?> doesnt return the site name.
At the browser the <h1></h1> is empty. Does someone know what is happening?
2 Answers
RAFAEL COSTA
6,243 PointsEdely, you should set the comand to fill a variable, like $blogName = bloginfo('name'), and then you can make it be shown like this: <?php echo $blogName ?>
Edely Gomes
4,485 PointsActually, I made a mistake. I was talking about the bloginfo, but I was thinking about the wp_title function. Turned out I made a confusion. In the end of the video, they explain I have to add the wp_footer before the end of </footer> tag to make the Title appears.