Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_forum_reply_count

Codex Home → bbp_forum_reply_count

Description

The ‘bbp_forum_reply_count’ function is used to display the total count of all replies to topics within a forum and sub forums

How to use it

<?php bbp_forum_reply_count( $forum_id, $total_count ); ?>

$forum_id (optional) – Returns count for particular forum id
$total_count (optional) – Returns total count for all replies in forum and sub forums by default and returns total count for all replies in forum but not sub forums if true, must set $forum_id to work if true

Uses bbp_get_forum_reply_count()

Sample code example

<?php bbp_forum_reply_count(); ?>

Displays the total count of all replies within a forum and sub forums

<?php bbp_forum_reply_count( '1', false ); ?>

Displays the count of all replies within a forum and not sub forums with a forum ID of 1

Skip to toolbar