I do not understand what you are trying to achieve. First you said you want to show the like/dislike counts but here you have put the GetWtiLikePost function. Also check for how to implement action hook here. You should echo the total count. It would be helpful if you can set up a temp server with sharing access to us.