0

I want to add different custom fields to comments that belongs to different user group, and display different types of comments in different ways. But WP has some default comment types that shows the type column probably is not for this job. Would anybody make this clear for me?

2
  • Read - Custom Comment type, maybe ?
    – Amit Kosti
    Commented Aug 9, 2012 at 10:25
  • They suggested using custom post types instead. But didn't point if it is legal to create a new comment type.
    – Jenny
    Commented Aug 9, 2012 at 10:48

1 Answer 1

1

Taking a quick look at comments.php, I can say - using custom comment type is so far legal, however I didn't played with this yet but you can, and post back with your results if you found any illegal stuff in this.

I found on codex the get_comments() function is accepting comment type as argument, so you'll not be having any problems with accessing comments of type foo.

Also other functions are looking clean to use with custom comment type.

Note - Take necessary precautions ( BackUp ) before doing any changes to live site !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.