PHP syntax help needed
Posted: Thu Jan 19, 2012 1:27 pm
Here is the statement I'm having trouble with
In html source it outputs it like this:
For some reason it divided the path to image into two parts.
Any ideas what I'm doing wrong?
Code: Select all
echo '<img src="'. bloginfo('template_directory') .'/images/image.png" title="" alt="" />';Code: Select all
http://site.com/wp-content/themes/mytheme
<img alt="" title="" src="/images/image.png">Any ideas what I'm doing wrong?