How to get number of total likes on post | blog ?

Play True Posted in General Discussion 1 week ago

I was trying to find this all day long, help please

Replies
by Play True Replied 1 week ago

So , as i understood , this'll give me an ?boolean? , how can i convert this to a number. I have never work with php, until this moment, so i curious about this

German Arsalan Shah Replied 1 week ago

I am assuming you are a developer, ... blogs likes are based on entity so if you know blog_entity guid then

$likes = new OssnLikes();
$list  = $likes->GetLikes([guid], 'entity');