get_option for template directory
-
i have a function in my function.php that has a line like this:
echo '<img src="https://edward.com/ot/wp-content/themes/default/images/home.png" alt="Home" class="home" /></a> </li> ';
Then i tried this :
echo '<img src="'.get_option('home').'/wp-content/themes/default/images/home.png" alt="Home" class="home" /></a> </li> ';
is there a better way or shorter way to call the template directory?
How do i use the
TEMPLATEPATH
in this situation? is it posible?Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_option for template directory’ is closed to new replies.