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?
Yes I did it on the individual pages. The site is not yet live. I would have to give you login details privately.
Are you using page template for it then write your code for fetch then menu ??
or which plugin are you used ??
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.
<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>
I am sorry I am a beginner. What do I have to do with that code you posted.
that code put in your sidebar page
I put that code in sidebar.php, but it made no difference.
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.