[Solved] Custom Ratings meta key  


New Member
Joined: 1 month ago
Posts: 2
12/12/2019 10:56 pm  

Hello!  I'm relatively new to wpDiscuz and so far I love it!  Unfortunately, I've run into an issue that I hope you can help with. 

I'm adding wpDiscuz to a food blogger site.  The site uses a plugin called WP Tasty to create recipe cards and it also does comment ratings.  They store ratings in a comment meta key "ERRating".  When I tried to add this in wpDiscuz using the form builder, it saves the value as "errating" (lowercase) which will not work with Tasty.  Is there any way to allow upper/lowercase for the meta_key value for the Ratings field?

If the above is not possible, do you have any developer documentation for adding custom fields to the comment form?  I could write something to integrate the Tasty functionality into the form given the appropriate actions/filters for wpDiscuz.  I tried hooking into do_action('comment_form_top') but the field needs to be inside the <form> tag.

Any assistance you can provide would be greatly appreciated!

This topic was modified 1 month ago by Elvina

Topic Tags
Reputable Member Moderator
Joined: 5 months ago
Posts: 425
13/12/2019 3:42 pm  

Hi @aapc,

The feature will be added in the next version update.

For now, please deactivate the wpDiscuz plugin, delete it, then download and activate the new wpDiscuz plugin (it's attached below). It is should work fine.

All changes will be included in the next update. 

This post was modified 1 month ago by Elvina

New Member
Joined: 1 month ago
Posts: 2
13/12/2019 8:33 pm  

Thank you for the quick reply!  I ended up using the "wpdiscuz_button" action to insert the Tasty ratings.  I would have preferred an action hook inside the form  and above and/or below the comment field but this worked out OK.  I will update the plugin when the next release is published.

Thanks again and love the plugin!

Black Emo