• Hi,

    I am trying to submit comments with custom comment_type field. I am using the following code.

    <input class="btinput" name="submit" type="submit" id="submit" tabindex="5" value="" />
    	            <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
                      <input type="hidden" name="comment_type" value="review" id="comment_type" />
    
    	            <?php comment_id_fields(); ?>
    	            <?php do_action('comment_form', $post->ID); ?>

    However, on submitting this form, it is saving the comment int he comments table but the comment_type field is blank. Am i missing anything here?

Viewing 1 replies (of 1 total)
  • rashmiranjan, did you get this working? I’m also thinking of using the comment_type field for something and I’d love to know whether it worked out for you.

Viewing 1 replies (of 1 total)

The topic ‘Custom Comment_type not getting saved in DB’ is closed to new replies.