Title: yeroc's Replies | WordPress.org

---

# yeroc

  [  ](https://wordpress.org/support/users/yeroc/)

 *   [Profile](https://wordpress.org/support/users/yeroc/)
 *   [Topics Started](https://wordpress.org/support/users/yeroc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/yeroc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/yeroc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/yeroc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/yeroc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/yeroc/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[plugin alphas-categories-widget] – Bug: excluuding doesn’t seem to work](https://wordpress.org/support/topic/plugin-alphas-categories-widget-bug-excluuding-doesnt-seem-to-work/)
 *  [yeroc](https://wordpress.org/support/users/yeroc/)
 * (@yeroc)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-alphas-categories-widget-bug-excluuding-doesnt-seem-to-work/#post-1120770)
 * Hey everyone,
 * I ran into this trouble too, and as PressingIt says you need the cat_ID number.
 * How do you get that? Just go to Posts > Categories and hover your mouse over 
   the category you want to exclude. Look at the bottom of the browser window and
   you’ll see the URL telling you what the category ID is.
 * Just put that number into the “exclude” textbox, and you’re set! More than one
   you can just separate with commas.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom Blog Page Sidebars & CSS](https://wordpress.org/support/topic/custom-blog-page-sidebars-amp-css/)
 *  Thread Starter [yeroc](https://wordpress.org/support/users/yeroc/)
 * (@yeroc)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/custom-blog-page-sidebars-amp-css/#post-1281020)
 * Aha! I figured it out. Here’s what I did:
 * As esmi suggested, create a sidebar-2.php file.
 * Within that file, change this:
 *     ```
       <?php /* WordPress Widget Support */ if (function_exists('dynamic_sidebar') and dynamic_sidebar(1)) { } else { ?>
       ```
   
 * to this:
 *     ```
       <?php /* WordPress Widget Support */ if (function_exists('dynamic_sidebar') and dynamic_sidebar(2)) { } else { ?>
       ```
   
 * …so that it will be associated with the 2nd sidebar in the array I defined in
   functions.php.
 * Then, I went into my page.php template and nixed this code:
 *     ```
       <?php if ( !function_exists('dynamic_sidebar')
       || !dynamic_sidebar('Sidebar2') ) : ?>
       <?php endif; ?>
       ```
   
 * …and instead used this:
 *     ```
       <?php include ('sidebar-2.php'); ?>
       ```
   
 * …et voila! All appears well in the world.
 * I’m a little confused why so many sites were saying for me to use that funky 
   if statement, though. Am I going about this the wrong way?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom Blog Page Sidebars & CSS](https://wordpress.org/support/topic/custom-blog-page-sidebars-amp-css/)
 *  Thread Starter [yeroc](https://wordpress.org/support/users/yeroc/)
 * (@yeroc)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/custom-blog-page-sidebars-amp-css/#post-1281007)
 * Thank you so much for your help!
 * I created the sidebar-2.php file, but still to no avail. To make it, I just copied
   the sidebar.php file – is that right? Or do I need to modify anything about the
   file?
 * Or is the issue that I’m not invoking this new file somewhere?

Viewing 3 replies - 1 through 3 (of 3 total)