Hi I’m trying to create this. Can anyone help me with this?
In my Wordpress theme I added a custom field into the post comment form. In this custom field the user submits a text label (a string) for the post (single post) as a comment meta. This user submitted text label (string - meta_value) will be added to wp_commentmeta table as meta_key called ‘et_comment_label’ and the meta_value would be the label (string) submitted by the user. The text label (string) that is submitted by most of the users (through the comment form) will be displayed on the post (single post) next to the post content. I need a function that does such a thing and counts which is the label that is most frequently submitted.
For example:
user 1 submits label: ‘awesome’
user 2 submits label: ‘worthless’
user 3 submits label: ‘awesome’
user 4 submits label: ‘boring’
user 5 submits label: ‘awesome’
As the label ‘awesome’ appears 3 times so that label appears next to the post content.
Anyone can help me to create this syntax? The one who helps me with this I’ll give a bit of incentive: ‘buy a bear or coffee donation’ and being part of my non-profit development team that has many great ideas.