Function Reference/get template
Description
Retrieve name of the current theme.
Usage
<?php get_template() ?>
Parameters
None.
Return Values
- (string)
- Template name.
Examples
Notes
- Uses: apply_filters() Calls 'template' filter on template option.
- Uses: get_option() to retrieve 'template' option.
- In the event a child theme is being used, the parent theme will be returned, not the child theme (use get_stylesheet() instead)
Change Log
Since: 1.5.0
Source File
get_template() is located in wp-includes/theme.php.
Related