Notifications
Clear all

Script [Solved] How to show Like count instead the likers.

3 Posts
2 Users
3 Likes
399 Views
nalin_duminda
Posts: 13
Topic starter
(@nalin_duminda)
Active Member
Joined: 2 years ago

I want to hide the likers names and only show the count, how can I do this?

2 Replies
Tutrix
Posts: 669
(@tutrix)
Prominent Member
Joined: 2 years ago

hi @nalin_duminda

you can edit the post.php of the used layout

replace


<?php wpforo_post_likers($post['postid']); ?>

with (only the number)


<?php echo WPF()->post->get_post_likes_count($post['postid']); ?>

or with (number and Like)


<?php echo WPF()->post->get_post_likes_count($post['postid']); ?> Like

 

the best way to do this see here

https://wpforo.com/docs/root/forum-themes/theme-customization/

nalin_duminda
Posts: 13
Topic starter
(@nalin_duminda)
Active Member
Joined: 2 years ago

@tutrix Thanks. This trick worked.

Share: