get_query_template


get_query_template ( $type, $templates = array() )

Parameters:
  • (string) type Filename without extension.
  • (string[]) templates An optional list of template candidates.
Returns:
  • (string) Full path to template file.
Defined at:

Description

Retrieves path to a template.Used to quickly retrieve the path of a template without including the file extension. It will also check the parent theme, if the file exists, with the use of locate_template(). Allows for more generic template location without the use of the other get_*_template() functions.

Related Functions

get_category_template, get_author_template, get_search_template, get_page_template, get_date_template

Top Google Results

User discussions

wpseek mobile