get_header [ WordPress Function ]
get_header ( $name = null )
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Load header template.
Includes the header template for a theme or if a name is specified then a specialised header will be included.
For the parameter, if the file is called "header-special.php" then specify "special".
Source
<?php
function get_header( $name = null ) {
do_action( 'get_header', $name );
$templates = array();
if ( isset($name) )
$templates[] = "header-{$name}.php";
$templates[] = 'header.php';
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
load_template( ABSPATH . WPINC . '/theme-compat/header.php');
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_header() - WordPress Codex
Description. Includes the header.php template file from your current theme's directory. if a name is specified then a specialised header header-{name}.php will ...
codex.wordpress.org - Include Tags « WordPress Codex
<?php get_header(); ?> The get_header() tag includes the file header.php or header-{name}.php from your current theme's directory. If that file is not found, it will ...
codex.wordpress.org - WordPress › Support » Tags — get_header
(forgot?) Register · WordPress › Support » get_header. 123Next ...
wordpress.org - Any advantage to using get_header() over include('header.php')?
Dec 11, 2010 ... The basic theme - in fact every theme I've looked at - uses get_header() to include the header file, but I don't see any reason for doing so.
wordpress.stackexchange.com
Gebruikersdiscussies [ wordpress.org ]
- alchymyth on "Content not being displayed after get_header"
- astacha on "Content not being displayed after get_header"
- astacha on "Content not being displayed after get_header"
- Donncha O Caoimh on "Hooking into wp_head and/or get_header with wp_supercache"
- jspicher on "Hooking into wp_head and/or get_header with wp_supercache"
- buhamad on "Changing the home.php page to home2.php... undefined function get_header() ?!?"
- Rev. Voodoo on "Changing the home.php page to home2.php... undefined function get_header() ?!?"
- buhamad on "Changing the home.php page to home2.php... undefined function get_header() ?!?"
- Rev. Voodoo on "Changing the home.php page to home2.php... undefined function get_header() ?!?"
- buhamad on "Changing the home.php page to home2.php... undefined function get_header() ?!?"