get_sidebar
get_sidebar ( $name = null, $args = array() )
Parameters:- (string) name The name of the specialized sidebar.
- (array) args Optional. Additional arguments passed to the sidebar template. Default empty array.
Returns:- (void|false) Void on success, false if the template does not exist.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Loads sidebar template.Includes the sidebar template for a theme or if a name is specified then a
specialized sidebar will be included.
For the parameter, if the file is called "sidebar-special.php" then specify
"special".