including images in page template.
-
I’m trying to create a new page template and want to include an image..
it works if I use an absolute URL…
like
<img src="https://mydomain.com/wp-content/themes/default/images/my.gif" >
,but if I try
<? echo '<img src="' . TEMPLATEPATH . '/images/my.gif" />' ?>
or just
<img src="/images/my.gif">
I get no image..
what am i doing wrong?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘including images in page template.’ is closed to new replies.