/** * Output the total number of posts in the current topic in the loop. */ function bp_the_topic_total_posts() { echo bp_get_the_topic_total_posts(); }
<span class="freshness-author"> <?php _e('By · ', 'huddle'); bp_the_topic_last_poster_name(); ?> </span> </p> </td> <td class="td-postcount"> <a href="<?php bp_the_topic_permalink(); ?> "> <?php printf(_n("<b>%d</b> Reply", "<b>%d</b> Replies", bp_get_the_topic_total_posts()), bp_get_the_topic_total_posts()); ?> </a> </td> <?php do_action('bp_directory_forums_extra_cell'); ?> </tr> <?php do_action('bp_directory_forums_extra_row'); ?> <?php