WordPress at a glance
Home Functions Theme (template) Theme files connection

Theme files connection (category)

comments_template()

Load the comment template specified in $file.

get_footer()

Includes the footer.php template file from your current theme's directory. If a $name is specified then footer-{name}.php file will be included.

get_header()

Includes the header.php template file from your current theme's directory. If a $name is specified then header-{name}.php file will be included.

get_parent_theme_file_path()

Retrieves the path of a file in the parent theme.

get_search_form()

Display search form.

get_sidebar()

Includes the sidebar.php template file from your current theme's directory. If a $name is specified then sidebar-{name}.php will be included.

get_stylesheet_directory()

Retrieve stylesheet directory path for current theme.

get_stylesheet_directory_uri()

Retrieve stylesheet directory URI.

get_stylesheet_uri()

Retrieves the URI of current theme stylesheet.

get_template_directory()

Retrieve current theme directory.

get_template_directory_uri()

Retrieve current theme directory URI. Returns the URL to the root theme, not a child one. Doesn't contain a closing slash at the end.

get_template_part()

Searches for and connects the specified theme file. Like include(), but no need to specify the path to the template.

get_theme_file_path()

Gets the path to the specified theme file. Work with child themes.

get_theme_file_uri()

Retrieves the URL of a file in the theme.

get_theme_root_uri()

Retrieve URI for themes directory.

is_page_template()

Whether currently in a page template.

load_template()

Require the template file with WordPress environment.

locate_template()

Retrieve the name of the highest priority template file that exists.