[wp-hackers] Re: Problems with themes, depreciated stuff, etc.

Ryan Boren ryan at boren.nu
Sun Nov 28 19:54:27 UTC 2004


On Sun, 2004-11-28 at 14:37 -0500, Robert Deaton wrote:
> The two bloginfo calls mentioned on the codex are useful in some
> senses, but not in the one that I mentioned above. The bloginfo()
> calls output the fully qualified URI, IE
> http://example.com/wordpress/wp-content/themes/example/ for the
> stylesheet directory. What I want is a constant (or a variable at
> least) that points to the current themedir in its absolute path, IE
> /var/www/localhost/htdocs/wordpress/wp-content/themes/example/ .
> The latter is useful when including or requiring documents without
> using relative paths, while the earlier is useful for linking a
> certain image or page within the theme directory. I need support for
> the latter.

get_template_directory()

Ryan





More information about the hackers mailing list