Can someone please tell me what the function name is that prints out the path to the theme's directory relative to index.php? i.e. wp-content/themes/theme I tried get_template_directory() which is not what I want...
Thanks in advance.
Can someone please tell me what the function name is that prints out the path to the theme's directory relative to index.php? i.e. wp-content/themes/theme I tried get_template_directory() which is not what I want...
Thanks in advance.
Some examples:
<?php bloginfo('template_directory'); ?> returns the active template directory
<?php bloginfo('url'); ?> returns URL of web root
<?php bloginfo('title'); ?> returns blog name
You'll need a trailing slash, i.e.:
<?php bloginfo('template_directory'); ?>/images/header.jpg
Sweet, thanks!
This topic has been closed to new replies.