• 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)
  • Thread Starter ccwordpress

    (@ccwordpress)

    A little further digging led me to “TEMPLATEPATH” – which I think will be exactly what I need. Maybe that’s why the *_directory parameters don’t do this any more. Regardless, I don’t see that documented very well.

Viewing 1 replies (of 1 total)
  • The topic ‘get_bloginfo(‘template_directory’) – returns URI, not filesystem path’ is closed to new replies.