Codex tools: Log in
Contents |
Retrieves the absolute path to the directory of the current theme, without the trailing slash.
In the case a child theme is being used, the absolute path to the parent theme directory will be returned. Use get_stylesheet_directory() to get the absolute path to the child theme directory.
<?php get_template_directory(); ?>
This tag has no parameters.
Since: 1.5.0
get_template_directory() is located in wp-includes/theme.php.
Theme paths: get_template(), get_template_directory(), get_template_directory_uri(), get_theme_roots(), get_theme_root(), get_theme_root_uri(), get_stylesheet(), get_stylesheet_uri(), get_stylesheet_directory(), get_stylesheet_directory_uri(), get_bloginfo()