get_sidebar ( $name = null, $args = array() )

  • (string) name The name of the specialised sidebar.
  • (array) args Optional. Additional arguments passed to the sidebar template. Default empty array.
  • (void|false) Void on success, false if the template does not exist.
Defined at:
Change Log:
  • 5: .
  • 5: .


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".

Related Functions

get_site, register_sidebar, register_sidebars, get_sites, get_users

Top Google Results

User discussions

wpseek mobile