list only forum category and its content(description)
-
Hi All,
I want list only forum category and its content(description) in right sidebar. i do below code to display category and its comtent but when i go to sub-forum page or topic page its nothing to display. i also want to display forum category and its content in sidebar of subforum and topic page.
thanks
<?php if (bbp_is_forum_category()) : ?>
<?php if ( bbp_has_forums() ) : ?>
<?php while ( bbp_forums() ) : bbp_the_forum(); ?>
<div class=”lm_link_container lm_has_sub”>
<div class=”lm_link”>
<div style=”float: left” class=”icon lm_arrow”></div>
<?php do_action( ‘bbp_theme_before_forum_title’ ); ?>
<div class=”language-title”><?php bbp_forum_title(); ?></div>
<?php do_action( ‘bbp_theme_after_forum_title’ ); ?>
<div class=”clearboth”></div>
</div>
<div class=”language-subcategory”>
<?php do_action( ‘bbp_theme_before_forum_description’ ); ?>
<div class=”language-subcategory”>“><?php bbp_forum_content(); ?></div>
<?php do_action( ‘bbp_theme_after_forum_description’ ); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<?php bbp_get_template_part( ‘feedback’, ‘no-forums’ ); ?>
<?php endif; ?>
<?php endif; ?>
- You must be logged in to reply to this topic.