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: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
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.