Question on proper syntax for using bloginfo()
Posted: Sat May 09, 2009 10:13 am
Hi, I'm using wordpress and placing an image on a page with:
This works great, but I would really like to use the bloginfo() function so I don't have to type out the entire URL - but I can't figure it out. I'm trying to do something like this:
I think I'm screwing up the single and double quotes somehow. Any help on proper syntax is appreciated!
Code: Select all
echo "<img src=\"http://www.SITENAME.com/wp-content/them ... GENAME.jpg\" alt=\"IMAGEDESCRIPTION\" />\n";Code: Select all
echo "<img src=\"bloginfo('template_directory')/images/IMAGENAME.jpg\" alt=\"IMAGEDESCRIPTION\" />\n";