Title: Adding comment meta
Last modified: August 19, 2016

---

# Adding comment meta

 *  [WayneSmallman](https://wordpress.org/support/users/waynesmallman/)
 * (@waynesmallman)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/adding-comment-meta/)
 * Hi guys!
 * I’ve added another field to the standard comments field. I want the data in this
   field to be saved to the comments meta table with the ID of the comment it belongs
   to.
 * I’m trying to make use of the update_comment_meta() and get_comment_meta() functions.
 * So far, I’ve not been able to find any documentation here on WordPress, which
   has been a problem. However, I’ve managed to get update_comment_meta() working
   and writing data to the comments meta table.
 * Problem is, I can’t retrieve it — the reason being I don’t know what the ID is
   of the comment I’m attempting to associate the meta data with.
 * I’ve written up my code into a Plugin, so I’m calling from within there.
 * Any ideas how I grab the ID of the comment?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [aaronholbrook](https://wordpress.org/support/users/tyrun/)
 * (@tyrun)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412765)
 * Any luck with this Wayne? I’m looking to do the same thing.
 *  [jlyon](https://wordpress.org/support/users/jlyon/)
 * (@jlyon)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412768)
 * Hey Wayne / Tyrun
 * Would this help? [http://www.soapboxdave.com/2010/02/using-wordpress-comment-meta/](http://www.soapboxdave.com/2010/02/using-wordpress-comment-meta/)
 * If you find a working solution please let me know, I’m going to play around with
   this as well so if I get it to work I’ll let you know.
 * Cheers
 * Jonathan
 *  [justbishop](https://wordpress.org/support/users/justbishop/)
 * (@justbishop)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412785)
 * Has anyone written a plugin for this (adding/displaying extra fields for comments)
   that works with 2.9.2 or 3.0 yet?
 *  [justbishop](https://wordpress.org/support/users/justbishop/)
 * (@justbishop)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412788)
 * Just an update, I got the Extra Comments Field plugin working on my 3.0 with 
   a bit of code change. I posted a download for the updated plugin file here if
   anyone else needs it:
 * [http://wordpress.org/support/topic/293846?replies=9](http://wordpress.org/support/topic/293846?replies=9)
 *  [s0what](https://wordpress.org/support/users/s0what/)
 * (@s0what)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412799)
 * justbishop, download link leads to spam page. Please fix it!
 *  [solace10](https://wordpress.org/support/users/solace10/)
 * (@solace10)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412801)
 * [@justbishop](https://wordpress.org/support/users/justbishop/)
 * Hi Hi
 * I am seeking the holy grail: the Extra Comments Field plugin that works !
 * After spending a whole day trying to get the original code to work – I;’m on 
   the verge of paying out good money I don’t have to get it working.
 * Your link above is broken – any chance you could please post again ?
 * Thanks you
 * Cheerfully
 *  [justbishop](https://wordpress.org/support/users/justbishop/)
 * (@justbishop)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412809)
 * Sorry about that, guys! It’s not a spam site, I just let that domain name lapse
   and am still debating repurchasing it. In the meantime, you can access the updated,
   WP 3.0 compliant version of the Extra Comment Fields plugin by Nate Weiner [HERE](http://www.unlabel.me/extra-comment-fields.zip)
   😉
 *  [solace10](https://wordpress.org/support/users/solace10/)
 * (@solace10)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412811)
 * Resolved for anyone interested see here:
 * [http://wordpress.org/support/topic/adding-an-extra-field-to-the-comments?replies=18](http://wordpress.org/support/topic/adding-an-extra-field-to-the-comments?replies=18)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Adding comment meta’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 6 participants
 * Last reply from: [solace10](https://wordpress.org/support/users/solace10/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/adding-comment-meta/#post-1412811)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
