Template Tag “template_directory” pulling wrong path
-
I’m working on a theme index.php file and it seems that when I use the “template_directory” it is not actually pulling the url path of the file, but instead is just pulling the main domain name. So instead of
https://example.com/wp-content/themes/theme_name/images/pic.jpg
its pulling the domain url and showing this
https://example.com/images/pic.jpg
I don’t understand why it’s doing this, since the index.php file is actually in the right directory. (which is inside the theme folder). There is the index.php file that is in the wordpress directory… but I don’t understand why it would conflict with the themes index.php file.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Template Tag “template_directory” pulling wrong path’ is closed to new replies.