"WordPress Theme Development" was retired on July 6, 2019.

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