Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Display topic list of a specific forum

@lucju04

Participant

I don’t really find a solution but as my home is not destined to change, I just created a custom “static” section. It’s answer to all my issues.

My section looks like:

<section class="bbp-forum-table__container"> 
	<div class="bbp-forum-table__content style-<?php bbp_forum_id(); ?>">
		<div class="bbp-forum-table__content--forum-list">
			<div class="bbp-forum-table__header--grid">
				<div>Discussions générales</div>
				<div>Participants</div>
				<div>Réponses</div>
				<div></div>
				<!-- <span>Dernier message</span> -->
			</div>
				<?php $args = array( 'post_type' => 'topic', 'posts_per_page' => 10, 'post_parent' => '410' );
					$loop = new WP_Query( $args );
					while ( $loop->have_posts() ) : $loop->the_post(); ?>
						<div class="bbp-forum-table__content--grid ">
					
							<div class="topic-title"><a href="<?php bbp_topic_permalink(); ?>"><?php the_title(); ?></a></div>
					
							<div class="replies-counter"><?php bbp_topic_voice_count(); ?></div>	
					
							<div class="posts-counter"><?php bbp_topic_post_count(); ?></div>
						
							<div class="user-freshness"></div>	
						
						</div>
				<?php endwhile;?>
		</div>
	</div>
</section>

I just need to add user-freshness.

Thanks for you help of course 😉

Skip to toolbar