bbp_forum_topic_count

bbp_forum_topic_count

bbp_forum_topic_count
Codex Home → bbp_forum_topic_count
Description
The 『bbp_forum_topic_count』 function is used to display the total topic count of a forum including sub forums.
How to use it

$forum_id (optional) – Returns count for particular forum id
$total_count (optional) – Returns the total topic count with true including sub forums or just topics within that forum with false
Uses bbp_get_forum_topic_count()
Sample code example

Displays the total count of all topics within the current forum and sub forums

Displays the total count of all topics within the forum with an ID of 1

Displays the count of topics within the current forum not including topics in sub forums

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

报告拼写错误

以下文本将发送给我们的编辑: