Questions tagged [comment-meta]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
214 views

Storing Comment Meta as an Array

I need to add multiple checkboxes to a post comment form (a Woocommerce product review form, to be exact) that allows people to choose which health condition the product is best for. Upon choosing X ...
Lee Peterson's user avatar
6 votes
2 answers
1k views

Lack of composite indexes for meta tables

Why wp_commentmeta table does not have a composite index (comment_id, meta_key) by default? I believe it's the only useful index for that table, am I wrong? Instead, it has a strange set of indexes: ...
Dmitry Isaev's user avatar
3 votes
1 answer
8k views

Is it possible to show custom comment metadata in the admin panel?

I've customized my comment form with a new field (city, but that doesn't really matter). I've hooked and filtered and added my comment metadata with add_comment_metadata. I want to show that metadata ...
ageektrapped's user avatar
2 votes
1 answer
3k views

Upload images with comment

EDIT: I finally got the right answer; see my own answer beneath this post for everyone that's interested. After searching for a couple of days and trying over and over again I really got stuck. I'...
Dennis Hunink's user avatar
0 votes
1 answer
63 views

add field comment [duplicate]

Possible Duplicate: Add Comment Custom Field Add Comment Custom Field I'm also interested with this, but where should I put those codes? help me guys..
try Ter's user avatar
1 vote
2 answers
19k views

Add Comment Custom Field

I searched a lot of thread regarding my problem, but unfortunately I found nothing works, and this my final option. I want to add some custom fields on my comment form. How can I do that?
markyeoj's user avatar
  • 507
0 votes
1 answer
209 views

Editing custom fields for comments

I need help with why the save function is not working in the edit_comment hook. Here is the code for the 'comment_post' hook: add_action( 'comment_post', 'save_comment_meta_data' ); function ...
AlxVallejo's user avatar
  • 1,441
1 vote
1 answer
413 views

How to update Post Meta values through the comment system

I'm working on allowing users to rate posts - through the comment meta. Storing and displaying individual ratings is working, however, I would like to be able to store the average rating in the post ...
maarten's user avatar
  • 25
4 votes
2 answers
2k views

Running a function on comment status change

I am making a review system where i need to find update rating average when: A comment gets approved from pending/trash/spam. A comment gets upapprove from approve A admin post reviews (auto approved)...
Sisir's user avatar
  • 7,762
1 vote
1 answer
598 views

Get comments from post and sort by commentmeta value

I want to get all of the comments for a given post and return them in order by a meta_key's value desc high to low. Doesnt look like i can do this with get_comments() like i would like to. This will ...
estern23's user avatar
  • 173
3 votes
1 answer
3k views

Query & Sort Comments by custom comment meta

I added a basic "favorite/recommend" functionality for posts and comments to a wordpress site I'm working on. I'm storing the total numbers of comment "likes" in a custom comment meta field (...
ximi's user avatar
  • 131
1 vote
1 answer
1k views

How to sort posts by the average of comment meta values

Here's the situation- I've customized the comment submission whereby users can provide a rating, and this gets stored as a meta value in the commentmeta table. I can query to return the average ...
elleeott's user avatar
  • 315
2 votes
1 answer
4k views

Wordpress Comment. Need some details of wp_comments DB table

Today I was doing some research on wordpress comments. I am looking for making a Comment Type which I can use as a review on wordpress custom post type which I use for business directory listings. ...
Sisir's user avatar
  • 7,762
11 votes
1 answer
1k views

Find out which moderator approved comment?

Is there any way to find out what moderators have approved a comment, and then display that information on the front-end? e.g. John says: "This is a great article" - Approved by Admin1
James's user avatar
  • 111
2 votes
5 answers
3k views

How to get the average of the values from the comment meta

I used the comment meta to add a simple rating system. The user can post a rate from the comment form from where I added 3 dropdown comment meta. The rating is working well, reflecting the ratings ...
user5233's user avatar
2 votes
2 answers
2k views

How to change title attribute returned by comments_popup_link()?

I can change label of comments by altering Comment(s) from parameter of following function: comments_popup_link('No Comments;', '1 Comment;', '% Comments;'); But, seems that title attribute is ...
user931's user avatar
  • 321
1 vote
1 answer
197 views

show the meta values to visitors that collected via coment form

in stackoverflow (here) there is a solution for collecting extra information from visitors, and i want to ask that, is it possible to show the collected information to other visitors in his/her ...
Alper's user avatar
  • 183
0 votes
3 answers
2k views

What are the additional fields in wp_comments used for?

I'm working on a rather odd implementation that stretches the limits of WP a little - its a healthcare site where patients are a custom post type and procedure requests related to each patient are ...
goldenapples's user avatar
  • 9,236

1
2