Thanks @Casiepa
But I don’t want count the replies, I just wanna add a Label to Topics with 0 replies, and hide it if somebody reply the topic.
I found the info here:
24. Show status labels for bbPress Topics
Any other suggestion?
I think the label (no replies) should be on the documentation by default.
@arutam to make the function work, counting the replies is exactly what you need to do.
Try this amd see if it works.
function rkk_empty_topics() {
$topic_reply_count = bbp_get_topic_reply_count();
if ( $topic_reply_count == 0 )
echo '<span class="empty">[No Replies]</span>';
}
add_action( 'bbp_theme_before_topic_title', 'rkk_empty_topics' );
@Robkk thanks, actually It works!
But I realized that if a topic is marked as closed without replies, the code you posted replaced the CLOSED label.
Is there a way to avoid label no-reply replace the closed label?
I mean, how i can make closed label the priority?
Regards,
Add && !bbp_is_topic_closed()
to the functions if statements after the zero and before the )
.
Awesome! Thank You @Robkk, solved…
You should visit my forum, looks pretty cool!
@arutam if you want flaunt your forum in Pimp your Press and I will check it out there.