WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/get single template

Contents

Description

Retrieve path of single template in current or parent template.

Usage

<?php get_single_template() ?>

Parameters

None.

Return Values

(string) 
Result of get_query_template('single').

Examples

Notes

Change Log

Since: 1.5.0

Source File

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

Related

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