Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress WordPress Theme Development WordPress Header and Footer Templates WordPress Header and Footer Quiz

Quiz Problem on WordPress Theme Development Quiz - Porting Headers and Footers PHP

Question from the WordPress Themes Development Quiz Web Development Porting existing headers and footers into WordPress

I have been unable to give an acceptable answer to the following two questions. I have tried every answer combination I can think of but nothing seems to work. These types of questions should not be fill in the blank since they will only accept one answer one way.

  1. What function and parameter would you use to dynamically echo out the URL for a WordPress site: ? 2.How would you echo out the current year in 4 digits using the PHP date function?

Any suggestions?

3 Answers

Hi,

1) What function and parameter would you use to dynamically echo out the URL for a WordPress site?

bloginfo( 'url' )

2) How would you echo out the current year in 4 digits using the PHP date function

date( 'Y' )

(Both answers without PHP tags, echo or semi colon.)

Hope that helps.

-Rich

Yes, that helped greatly Rich. I was trying to include too much information. Or I had my spacing wrong. Anyway, thanks.

No problem. Drop me a Best Answer if you're sorted :)

-Rich

Done and thanks again.