Notifications
Clear all

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

3 Posts
2 Users
3 Reactions
859 Views
Posts: 13
Topic starter
(@nalin_duminda)
Eminent Member
Joined: 4 years ago

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

2 Replies
Tutrix
Posts: 1453
(@tutrix)
Noble Member
Joined: 5 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/

Posts: 13
Topic starter
(@nalin_duminda)
Eminent Member
Joined: 4 years ago

@tutrix Thanks. This trick worked.