Wordpress get Template

Get Wordpress template

Contains the named template part for a topic or, if a name is specified, adds a special part. The thing you see here is a typical page.php template file for a topic.


Load a template part into a template. Offers a straightforward subsidiary design mechanic to clutter re-usable pieces of design cipher. Contains the designated template part for a topic or if a name is specified, a special part is added. When the design does not contain a {slug}.php {slug}.php template, no template is added.

This template is integrated with required, not requirement_once, so that you can integrate the same template part more than once. lf the name of the filename is "{slug}-special.php", specify "special" for the $name argument. This is the name of the slot for the template. The name of the specialized template. do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); $name = (string) $name; $templates[] = "{$slug}-{$name}.

php" means ; $templates[] = "{$slug}.php" ; locate_template php" means ; $templates[] = "{$slug}.php" ; get_template_part( $slug ) ; get_template_part ($slug, nom $)))/ xy_subplates_p ;

<font color="#ffff00">Description

Returns the name of the folder of the topic without the final forward slur. When using a sub design, the system returns the folder name of the sub design. You can use get_stylesheet() to get the sub design's name. name of the topic (without the closing slash).

It' s the same as the name of the subject.... Uses: get_option() to get the template options. Uses: apply_filters() to applied the template filter to the requested template options. get_template() is found in wp-includes/theme.php, line 241.

<font color="#ffff00">Description

Gets the page template pathname in the currently selected or superordinate template. The first try is to search for the filename in the page'_wp_page_template' metadata. If the first one has a filename and is not empty, the second try is to search for 'page.php'. Return the page template location in the currently selected or selected template.

Shows the file name of the page template used to make a page (printed in an HTML annotation in this example): Used: apply_filters() on'page_template' as a locate_template () output. get_page_template() is found in wp-includes/template.php.

Mehr zum Thema