The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Rating shortcode doesn't work on pages with disabled comments
(@arscrigicioniec)
Trusted Member
Joined: 6 years ago
If i use this shortcode:
[wpdrating metakey="all" show-lable=false show-count=false show-average=false itemprop=false post_id="15780"]
on page with disabled comments, I get a bug that you can see on the screenshot. Once I turn on the comments, the bug disappeared.
(@arscrigicioniec)
Trusted Member
Joined: 6 years ago
1. If I have comments with rating field, I have that bugged 5 big stars if comments are disabled.
2. If I have only enabled rating without rating field in comments. I have empty space if comments are disabled.
(@tomson)
Joined: 10 years ago
Honorable Member
Posts: 512
Apr 12, 2020 7:30 pm
@arscrigicioniec ,
Please don't use the rating for non-singular (archive) pages. It's not finished yet. wpDiscuz 7 doesn't support it yet. We'll fix all CSS and add it in next Beta-9 version.
(@arscrigicioniec)
Joined: 6 years ago
Trusted Member
Posts: 26
Apr 12, 2020 9:28 pm
@tomson , this screen is not from an archive page. It's the usual core page type "page".
(@tomson)
Joined: 10 years ago
Honorable Member
Posts: 512
Apr 15, 2020 5:14 pm
@arscrigicioniec ,
As far as i see you're trying to use the wpDiscuz rating shortcode on a page where wpDiscuz is not allowed. Am I right?
(@arscrigicioniec)
Joined: 6 years ago
Trusted Member
Posts: 26
Apr 15, 2020 11:07 pm
@tomson , yes. In page settings, there is a setting "Enable comments". The bug happens, if comments are disabled.
(@tomson)
Honorable Member
Joined: 10 years ago
@tomson , yes. In page settings, there is a setting "Enable comments". The bug happens, if comments are disabled.
This is not a bug.
Do you know that the rating shortcode is only based on the Rating Custom field in comment forms? So if you disable the comments, how do you expect the rating should be made? What is the mean to show rating if there is no way to rate for that rating? This is a logical issue not a bug. You should not use the shortcode if you've disabled the comments, because that rating is based on the rating field of comment form.
(@arscrigicioniec)
Joined: 6 years ago
Trusted Member
Posts: 26
Apr 18, 2020 12:14 am
@tomson , sorry, you didn't understand me correctly.
I meant this:
1. Page id=1, comments are enabled.
2. The other page id=2, comments are disabled. I input there the following shortcode to display rating from page 1 :
[wpdrating metakey="all" show-lable=false show-count=false show-average=false itemprop=false post_id="1" ]
and I get this bug. These comments are from the other page so they should be shown.
(@tomson)
Joined: 10 years ago
Honorable Member
Posts: 512
Apr 18, 2020 12:58 am
Ok @arscrigicioniec ,
Thank you for the information For this case the issue is fixed in upcoming version.