Manually list a bunch of forums based on their IDs
I just deleted my previous work where I had grouped all my forums inside Categories and made all forums solo – no parent Forums anymore.
The only question I have is how do I manually query for forums based on ID’s.
On the forums-archive template ( forums index ) I would like to group all my forums manually together, fake ‘categories’ I will make of static HTML inside the archive-template and now i’m only searching for a piece of code how to list them.
Name fake cat. in HTML
– (forum_id = 23) forum_name – topics – replies
– (forum_id = 37) forum_name – topics – replies
– (forum_id = 15) forum_name – topics – replies
I wished this would work..
<?php if ( bbp_has_forums( array( 'forum_id' => 23 ) ) ) : ?> <?php bbp_get_template_part( 'loop', 'forums' ); ?> <?php endif; ?>
- You must be logged in to reply to this topic.