Skip to:

BBPress Menu

  • john2323


    Hi, I have the Whoop theme and its designed to use bbPress but the menu shows ALL categories under one menu in a row. Including sub categories. I want to change it so it only shows the parent categories as currently there are at least 30 items in the menu.

    Is the below code what needs to be change and if so can you help me out by doing this? I don’t even want the menus collapsible. Just at link for each main category and thats it.

     <div class="whoop-forum-cats-list">
                            <ul class="whoop-forum-cats-list-inner">
                                $forum_id = bbp_get_forum_id();
                                $forum_args = array(
                                    'posts_per_page' => 100,
                                    'post_type' => bbp_get_forum_post_type(),
                                    'order' => 'ASC'
                                $forums = query_posts( $forum_args );
                                foreach ($forums as $forum) {
                                    $link = get_permalink($forum->ID);
                                    if ($forum->ID == $forum_id) {
                                        $class = 'active';
                                    } else {
                                        $class = '';
                                    <a class="<?php echo $class; ?>" href="<?php echo $link; ?>">
                                        <div class="forum-cat-text-wrap">
                                            <?php echo $forum->post_title; ?>
                                            <div class="forum-cat-last-updated">
                                            <?php echo bbp_get_forum_last_active_time( $forum->ID ); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar