Paste the following to your functions.php :

<?php if ( function_exists('register_sidebars') )
register_sidebars(2);
?>

If your current theme has only one (1) sidebar, you would need to create a second sidebar file.

Open up your sidebar.php and rename it as sidebar2.php > erase everything and paste the following:

<ul>
  <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
  <li>
    <h2>
      <?php _e('Categories'); ?>
    </h2>
    <ul>
      <?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
    </ul>
  </li>
  <li>
    <h2>
      <?php _e('Archives'); ?>
    </h2>
    <ul>
      <?php wp_get_archives('type=monthly'); ?>
    </ul>
  </li>
  <?php endif; ?>
</ul>

Now open up your index.php and single post.php ( and other pages where you want the additional sidebars to appear)

and paste the following :

<!--?php include (TEMPLATEPATH . '/sidebar2.php'); ?-->

without the

<! -- >

Having given the necessary codes for a second (or even a third) sidebar, you still have to work on its css styling.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s