WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get home template

Description

Retrieve path of home template in current or parent template.

Attempts to locate 'home.php' first before falling back to 'index.php'.

Usage

<?php get_home_template() ?>

Parameters

None.

Return Values

(string) 
Returns path of home template in current or parent template.

Examples

Notes

Change Log

Since: 1.5.0

Source File

get_home_template() is located in wp-includes/template.php.

Related

See also index of Function Reference and index of Template Tags.