Posts Tagged ‘ WordPress Dynamic Sidebar ’
Register Multiple Sidebars in WordPress: the simplest way
Monday, February 1st, 2010Registering multiple sidebars for your WordPress blog/site allows you to use different widgets in different areas of your blog/site. In this example we will see how to register 2 sidebars and then use them in your template files.
In order to register your sidebars and then be able to access them from the menu Appearance → Widgets all you need to do is:
- Open your functions.php theme file (* create one if it doesn’t exist)
- Copy and Paste the following code inside the <php ?> tag:
register_sidebars(2, array('name'=>'Sidebar %d')); - Go
…