dynamic_sidebar


dynamic_sidebar ( $index = 1 )

Parameters:
  • (int|string) $index Optional, default is 1. Index, name or ID of dynamic sidebar.
Returns:
  • (bool) True, if widget sidebar was found and called. False if not found or not called.
Defined at:

Description

Display dynamic sidebar.

By default this displays the default sidebar or 'sidebar-1'. If your theme specifies the 'id' or 'name' parameter for its registered sidebars you can pass an id or name as the $index parameter. Otherwise, you can pass in a numerical index to display the sidebar at that index.

Related Functions

is_dynamic_sidebar, is_active_sidebar, get_sidebar, unregister_sidebar, register_sidebar

Top Google Results

User discussions

wpseek mobile