We checked the code and it’s working correctly. Please make sure that the user you are trying to check has already liked some posts on your site while logged in.
You can also echo the query in the content-likes file and run that on phpmyadmin to see the results. We are sure it will pick up the user id but there won’t be anything for him in the wti_like_posts table for which it’s not showing any result. In case it does not pick the user id, you can simply hard code with any user id and see it’s now loading anything or not. If there is any error in the query, you can also see that.