Display topic list of a specific forum
-
Hi everybody,
I’m actually developing a Forum for a WordPress site.
My Home is composed by 3 sections. Each section is a Forum who list child forum (I’m ok with that it’s already ok). But the last section need to be a Forum who list topics of this Forum.
But when I try to use <?php echo do_shortcode( ‘[bbp-single-forum id=123]‘ ); ?> it’s a mess.
my content-archive-forum.php looks like:
<div id="bbpress-forums"> <div class="bbpress-header"> <div class="bbpress-header__image"> <img src="image.png" alt="Illustration sabre - Forum"> </div> <div class="bbpress-header__headline"><h1>Welcome</h1></div> <div class="bbpress-header__lead-paragraphe"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. <span>Donec vel auctor diam.</span> Nulla odio diam, maximus ut libero ut, <span>pharetra ullamcorper</span> orci. Sed magna nisl, pellentesque at ligula nec, condimentum viverra. Petit texte d’intro sur le forum (juste une idée)? </p> </div> </div> <?php bbp_get_template_part('user', 'bar'); ?> <?php bbp_breadcrumb(); ?> <?php bbp_forum_subscription_link(); ?> <?php do_action( 'bbp_template_before_forums_index' ); ?> <?php if ( bbp_has_forums() ) : ?> <?php bbp_get_template_part( 'loop','forums'); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_forums_index' ); ?> </div>
How I can just add a section who display juste the list of the topic for a specific forum ?
Best regards ! 🙂
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.