get_sidebar [ WordPress Function ]
get_sidebar ( $name = null )
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Benzer Fonksiyonlar: register_sidebar, register_sidebars, get_site_url, get_users, unregister_sidebar
Load sidebar template.
Includes the sidebar template for a theme or if a name is specified then a specialised sidebar will be included.
For the parameter, if the file is called "sidebar-special.php" then specify "special".
Source
<?php
function get_sidebar( $name = null ) {
do_action( 'get_sidebar', $name );
$templates = array();
if ( isset($name) )
$templates[] = "sidebar-{$name}.php";
$templates[] = 'sidebar.php';
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php');
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Get_sidebar - WordPress Codex
Description. Includes the sidebar.php template file from your current theme's directory. If a name ($name) is specified then a specialized sidebar ...
codex.wordpress.org - Include Tags « WordPress Codex
The Sidebar Template. <?php get_sidebar(); ?> The get_sidebar() tag includes the file sidebar.php or sidebar-{name}.php from your current theme's directory.
codex.wordpress.org - 3.0 - How do register_sidebar() and get_sidebar() work together ...
Aug 18, 2010 ... Disclaimer: I am brand spanking new to WP. I am using the Starkers HTML5 framework theme. In the functions.php I see this code: function ...
wordpress.stackexchange.com - Multiple WordPress Sidebars with get_sidebar() | RLM
Oct 11, 2009 ... In this article I show you how to use the get_sidebar() function to call multiple sidebars (as many as you want) in your WordPress theme.
www.rlmseo.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- bryceadams on "How to Hide Sidebar then Extend Page to take full width"
- dra6on on "How to Hide Sidebar then Extend Page to take full width"
- alchymyth on "How to Hide Sidebar then Extend Page to take full width"
- dra6on on "How to Hide Sidebar then Extend Page to take full width"
- alchymyth on "How to Hide Sidebar then Extend Page to take full width"
- Pankaj Pandey on "How to Hide Sidebar then Extend Page to take full width"
- dra6on on "How to Hide Sidebar then Extend Page to take full width"
- dra6on on "How to Hide Sidebar then Extend Page to take full width"
- Pankaj Pandey on "How to Hide Sidebar then Extend Page to take full width"
- dra6on on "How to Hide Sidebar then Extend Page to take full width"