How do you have multiple sidebars set up in wordpress? Easy. WordPress has a built in function for it.
If you are asking this question you would have by now seen <?php get_sidebar(); ?> written where the sidebar gets inserted. Well the function actually looks for a page that starts with sidebar and ends in .php. If no paramaters are passed in the function that is exactly what it returns – sidebar.php.
If you have multiple sidebars you will set paramaters to find the other sidebars.
Try this <?php get_sidebar( $name ); ?>
If you gave $name the value of “home”, what it is doing is asking the function to get a file called sidebar-home.php because the function appends sidebar- to any paramater passed.
That way you can set up your files like sidebar-1.php, sidebar-2.php and sidebar-3.php and have an if statement do the traffic work on the page that is deciding on which sidebar to use, or just slot the correct code in the correct spot if they are all to be shown together.
Check out the reference at WordPress.org CODEX – http://bit.ly/v4ZXu

