/** * Displays the topic post count (topic + reply count). * * @since 1.0.0 * @access public * @param int $topic_id * @return void */ function mb_topic_post_count($topic_id = 0) { echo mb_get_topic_post_count($topic_id); }
<header class="mb-page-header"> <h1 class="mb-page-header"><?php mb_single_topic_title(); ?> </h1> <p> <?php mb_topic_forum_link(); ?> <span class="mb-topic-post-count"><?php printf(__('Posts: %s', 'message-board'), mb_get_topic_post_count()); ?> </span> <span class="mb-topic-voice-count"><?php printf(__('Participating: %s', 'message-board'), mb_get_topic_voice_count()); ?> </span> <?php mb_topic_subscribe_link(); ?> <?php mb_topic_bookmark_link(); ?> </p> </header><!-- .mb-page-header --> <?php if (current_user_can('read_topic', mb_get_topic_id())) {