Number of likes given to the Topic?

I have added a plugin to display likes column in home page.

But, it is considering all the likes attached to Topic
i.e., sum of likes given to a topic and the likes given to its posts.

How do i get only the count of likes given to the topic not for its posts?

Thanks In Advance

1 Like