I have some custom comments fields, I need to display the number of times that a meta value is used
Example :
I have a custom comments field “Do you like this post” with multiple choice :
-
Yes
-
No
I need to display how much person say “Yes”, how much say “No” for each post, It’s an example. Don’t tell me to use “post rating” plugins 😉
I would try something like this:
Problem is the numbers can easily be manipulated so it might be better to count only one vote per user_id, comment_author or comment_author_IP depending on your usage.
Codex: get_comments – get_comment_meta