template_directory outputs wrong URL… Strange!
-
So I’m setting up a test WP site at the directory https://mysite.com/test
I currently have my main site running on https://mysite.com
Both of them are drawing from separate SQL Databases, so that I can really tinker with the test site without modifying the real one.
In the general settings for the test site, both “WordPress address” and “Site address” are set to https://mysite.com/test. I have triple checked this.
When I use bloginfo(‘template_directory’), it outputs the url for the main site! https://mysite.com/wp-content/themes/mytheme, when it should be outputting https://mysite.com/test/wp-content/themes/mytheme
What’s weird is if I use bloginfo(‘url’), it outputs the correct url: https://mysite.com/test
Can anyone shed any light on why this might be? I’m stumped.
Thanks.
- The topic ‘template_directory outputs wrong URL… Strange!’ is closed to new replies.