The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Display Post rating and number of ratings in the loop
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
(@psi)
Posts: 8
Active Member
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
Show original
Translating...
[#3461]
Hi there.
I'm new to this forum and not working with WP for long. I would like to use this awesome plugin and want to show the rating score and number of ratings in the loop. I haven't found any HowTo do this in the forum, so maybe anyone can point me in the right direction ?
I'm using Elementor and Crocoblock components with wordpress.
Thanks. psi
Posted : 02/12/2021 3:30 pm
(@asti)
Posts: 8259
Illustrious Member Support
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
Show original
Translating...
@psi,
You can use the shortcode provided here: https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode-2/
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 02/12/2021 3:38 pm
(@psi)
Posts: 8
Active Member
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
Show original
Translating...
@asti thanks for the fast reply 🙂 I have seen this post, but assumed this is for the comment rating rather than for Post rating. How can I set the post id in the loop or maybe I don't have to ?
Posted : 02/12/2021 3:50 pm
(@asti)
Posts: 8259
Illustrious Member Support
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
Show original
Translating...
@psi,
It should be a postid variable.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 02/12/2021 3:54 pm
(@psi)
Posts: 8
Active Member
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
Show original
Translating...
@asti It doesn't show anything, even with a static postid.
Posted : 02/12/2021 4:59 pm
(@asti)
Posts: 8259
Illustrious Member Support
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
Show original
Translating...
@psi,
The wpDiscuz has two types of ratings:
- Stand-alone Post Rating
- Post Rating Based on Comment Rating Field
the shortcode works only for the second type.
In the case of the first one, you should get the values from the database.
Those are stored in the wp_wc_users_rated table.
Also in the wp_postmeta table where the keys are:
- wpdiscuz_post_rating - the post rating
- wpdiscuz_post_rating_count - the count of the rate
The wp_ is just a prefix in your case it can differ.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 03/12/2021 12:11 pm
Super Globals
Options and Features