AI Assistant
Notifications
Clear all

[Solved] Custom Ratings meta key

3 Posts
2 Users
0 Reactions
4,053 Views
 AAPC
(@aapc)
New Member
Joined: 6 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#4841]

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!



   
Quote
Topic Tags
Elvina
(@elvina)
Support
Joined: 7 years ago
Posts: 1403
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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. 



   
ReplyQuote
 AAPC
(@aapc)
New Member
Joined: 6 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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!



   
ReplyQuote
Share:
Scroll to top