Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Hi guys, I hope you know what i mean here..... but where it says "Topics" on the front page of the forum, it refers to the amount of topics just in that one forums section. How can I change that number to show not only how many topics are in that forum section, but all of the sub forums too?Â
Any idea?Â
@tutrix, do you know how to do this mate?
I don't have any subforums, so I can't test it.
But I use these 3 codes to show all topics and posts in a category.
<?php $counts = wpforo_forum($cat['forumid'], 'counts'); ?> <?php echo wpforo_print_number($counts['topics']) ?> <?php echo wpforo_print_number($counts['posts']) ?>
Inserted in the forum.php (layout) like this
<div class="wpf-cat-count"><?php $counts = wpforo_forum($cat['forumid'], 'counts'); ?><span class="wpf-topic-count" wpf-tooltip="<?php echo wpforo_print_number($counts['topics']) ?> Themen in '<?php echo esc_html($cat['title']); ?>'" wpf-tooltip-position="top" wpf-tooltip-size="medium"><i class="fas fa-layer-group"></i><?php echo wpforo_print_number($counts['topics']) ?></span> <span class="wpf-post-count" wpf-tooltip="<?php echo wpforo_print_number($counts['posts']) ?> Beiträge in '<?php echo esc_html($cat['title']); ?>'" wpf-tooltip-position="top" wpf-tooltip-size="medium"><i class="fas fa-list"></i><?php echo wpforo_print_number($counts['posts']) ?></span></div>
Â