Title: Wrong sidebar
Last modified: August 22, 2016

---

# Wrong sidebar

 *  [Actinidia](https://wordpress.org/support/users/actinidia/)
 * (@actinidia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/)
 * I have an events page and a forums page, each with its own sidebar. I have associated
   each page to its own sidebar. The events sidebar is fine, but the forums sidebar
   has the events menu in it instead of the forums menu. Is it something to do with
   sidebars in appearance? I do not understand how that works.

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

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861204)
 * Hi Actinidia. Can you post a link to your site? When you say, “I have associated
   each page to its own sidebar”, did you do that in the individual page layouts?
 *  Thread Starter [Actinidia](https://wordpress.org/support/users/actinidia/)
 * (@actinidia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861255)
 * Yes I did it on the individual pages. The site is not yet live. I would have 
   to give you login details privately.
 *  [Bhavin Patel](https://wordpress.org/support/users/digitalbhavin/)
 * (@digitalbhavin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861257)
 * Are you using page template for it then write your code for fetch then menu ??
 * or which plugin are you used ??
 *  Thread Starter [Actinidia](https://wordpress.org/support/users/actinidia/)
 * (@actinidia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861276)
 * The forums plugin is bbPress. I have not written any code.I thought there was
   a way of doing this using the sidebar menu in appearance.
 *  [Bhavin Patel](https://wordpress.org/support/users/digitalbhavin/)
 * (@digitalbhavin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861286)
 * <aside id=”archives” class=”widget”>
    <?php $categories = get_categories(); $
   c = count($categories);
 * for($i = 0 ;$i < $c ; $i++)
    { ?>
    - <h1 class=”widget-title”>
       <?php echo $categories[$i] -> name; ?> </h1> <?
      php $k = $categories[$i] -> cat_ID; ?>
    -  <?php
    -  $photog_posts = get_posts(‘category=’.$k);
    -  foreach($photog_posts as $p)
       { ?>
    - 
    - <?php
       }
    -  wp_reset_query();
       ?>
 * </br> <?php } ?>
    </aside>
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861288)
 * There have been numerous issues reported with integrating bbPress. Here are a
   couple of threads that might be relevant:
    [https://wordpress.org/support/topic/sidebars-in-bbpress-profiles](https://wordpress.org/support/topic/sidebars-in-bbpress-profiles)
   [https://wordpress.org/support/topic/secondary-sidebar-blows-up-layout](https://wordpress.org/support/topic/secondary-sidebar-blows-up-layout)
 *  Thread Starter [Actinidia](https://wordpress.org/support/users/actinidia/)
 * (@actinidia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861292)
 * I am sorry I am a beginner. What do I have to do with that code you posted.
 *  [Bhavin Patel](https://wordpress.org/support/users/digitalbhavin/)
 * (@digitalbhavin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861303)
 * that code put in your sidebar page
 *  Thread Starter [Actinidia](https://wordpress.org/support/users/actinidia/)
 * (@actinidia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861310)
 * I put that code in sidebar.php, but it made no difference.
 *  Thread Starter [Actinidia](https://wordpress.org/support/users/actinidia/)
 * (@actinidia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861314)
 * In theme options, sidebars if I select events for both primary and secondary 
   single pages then that gives me the correct menu in the events primary and secondary
   pages.
 * That leaves the forums pages with the basic site navigation menu, not the forums
   menu created for the forums sidebar.

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

The topic ‘Wrong sidebar’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Actinidia](https://wordpress.org/support/users/actinidia/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/wrong-sidebar-1/#post-5861314)
 * Status: not resolved