WordPress.org

Ready to get started?Download WordPress

Forums

Adding comment meta (9 posts)

  1. WayneSmallman
    Member
    Posted 4 years ago #

    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?

  2. aaronholbrook
    Member
    Posted 4 years ago #

    Any luck with this Wayne? I'm looking to do the same thing.

  3. jlyon
    Member
    Posted 4 years ago #

    Hey Wayne / Tyrun

    Would this help? 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

  4. justbishop
    Member
    Posted 4 years ago #

    Has anyone written a plugin for this (adding/displaying extra fields for comments) that works with 2.9.2 or 3.0 yet?

  5. justbishop
    Member
    Posted 4 years ago #

    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

  6. s0what
    Member
    Posted 3 years ago #

    justbishop, download link leads to spam page. Please fix it!

  7. solace10
    Member
    Posted 3 years ago #

    @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

  8. justbishop
    Member
    Posted 3 years ago #

    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 ;)

  9. solace10
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags