get_bloginfo(‘template_directory’) – returns URI, not filesystem path
-
The codex says this:
‘stylesheet_directory’ – local path to stylesheet directory. For example, /home/you/public_html/wordpress/wp-content/themes/default.
‘template_directory’ – local path to template directory. For example, /home/you/public_html/wordpress/wp-content/themes/default.
But when I try to use either of these, I get URIs. I need the filesystem path, and I’d prefer not to use preg_replace to get it. Is there something I’m doing wrong? Is this a bug? Mis-documentation?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_bloginfo(‘template_directory’) – returns URI, not filesystem path’ is closed to new replies.