PHP Get Theme Folder
-
Hey, I am new to wordpress and php, although I have experience in a C++ language (MEL). But am having problems trying to get on my feet with a few things.
I’m creating a theme from scratch for my website. The theme directory has an images folder as well as the css and php files. The small problem I have is when the php files are brought together that html file is at “site.com/wordpress/page.html” so any images in the image folder won’t work being relative to the index.php file.
What is the code to get my images to have a prefix to the theme directory?
I tried this after doing a search on here but it didn’t work:
<a href="#"><img src="<?php TEMPLATEPATH(); ?>/images/resume.gif" /></a>What am I doing wrong?
Thanks for any help.
Christian
The topic ‘PHP Get Theme Folder’ is closed to new replies.