• Actinidia

    (@actinidia)


    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

    (@bdbrown)

    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

    (@actinidia)

    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

    (@digitalbhavin)

    Are you using page template for it then write your code for fetch then menu ??

    or which plugin are you used ??

    Thread Starter Actinidia

    (@actinidia)

    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

    (@digitalbhavin)

    <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)
      {
      ?>

    • guid ?>”><?php echo $p -> post_title; ?>
    • <?php
      }

      wp_reset_query();
      ?>

    </br> <?php } ?>
    </aside>

    bdbrown

    (@bdbrown)

    There have been numerous issues reported with integrating bbPress. Here are a couple of threads that might be relevant:
    https://www.ads-software.com/support/topic/sidebars-in-bbpress-profiles
    https://www.ads-software.com/support/topic/secondary-sidebar-blows-up-layout

    Thread Starter Actinidia

    (@actinidia)

    I am sorry I am a beginner. What do I have to do with that code you posted.

    Bhavin Patel

    (@digitalbhavin)

    that code put in your sidebar page

    Thread Starter Actinidia

    (@actinidia)

    I put that code in sidebar.php, but it made no difference.

    Thread Starter Actinidia

    (@actinidia)

    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.