load_template


load_template ( $_template_file, $require_once = true )

Parameters:
  • (string) $_template_file Path to template file.
  • (bool) $require_once Whether to require_once or require. Default true.
Defined at:

Description

Require the template file with WordPress environment.

The globals are set up for the template file to ensure that the WordPress environment is available from within the function. The query variables are also available.

Related Functions

locate_template, get_template, get_paged_template, get_tag_template, is_page_template

Top Google Results

User discussions

wpseek mobile