The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Misc bugs on wpdrat...
 
Notifications
Clear all

[Solved] Misc bugs on wpdrating shortcode

8 Posts
3 Users
0 Reactions
1,714 Views
nrichard
(@nrichard)
Posts: 14
Eminent 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
 
[#4592]

Hello,

I am using [wpdrating] shortcode as documented here and have a few issues...

1- itemprop=false does not work, but itemprop=0 does

2- With metakey="all", in Schema aggregate rating, I getalways (even when there are several ratings)
Note that I have one rating field only, so an easy workaround is using its metakey 😉

3- Last, I use [wpdrating] on WooCommerce product page to show the rating of another post (with a different post type, actually I am showing merchand rating on product page).
To do so, I use the postid parameter. This does not work, shortcode returns nothing.
Note that I successfuly used postid parameter in other situations...

Let me know if more details are needed to investigate 🙂


 
Posted : 15/07/2022 5:23 pm
nrichard
(@nrichard)
Posts: 14
Eminent 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
 

Some HTML was stripped in my message, on bug 2- I meant that ratingCount is always 1.


 
Posted : 15/07/2022 5:31 pm
Asti
 Asti
(@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
 

@nrichard,

1- itemprop=false does not work, but itemprop=0 does

Please use the 0 as a value of the itemprop attribute. 

2- With metakey="all", in Schema aggregate rating, I getalways (even when there are several ratings)
Note that I have one rating field only, so an easy workaround is using its metakey 😉

We don't follow you well. Please clarify a bit. 

3- Last, I use on WooCommerce product page to show the rating of another post (with a different post type, actually I am showing merchand rating on product page).

wpDiscuz rating shortcode doesn't work on WooCommerce product pages. 


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 : 16/07/2022 2:48 pm
nrichard
(@nrichard)
Posts: 14
Eminent 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
 

Please use the 0 as a value of the itemprop attribute. 

Then maybe you should consider updating your FAQ:
https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode-2/

We don't follow you well. Please clarify a bit.

Sorry, some HTML was stripped in my message. Here we go again:

2- With metakey="all", in Schema aggregate rating, I get always ratingCount as 1 (even when there are several ratings)
Note that I have one rating field only, so an easy workaround is using its metakey 😉

wpDiscuz rating shortcode doesn't work on WooCommerce product pages. 

At least it is clear 😉

I'll go with a workaround...


 
Posted : 16/07/2022 4:34 pm
(@legendsof)
Posts: 17
Eminent Member
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
 

I am also having problems getting the shortcode to work. I am trying to use on standard post pages. 

This is what I am trying to do:

[wpdrating metakey="all" show-label=false itemprop=0 id="3614"]
 
Does anyone see an issue with this? I can use other shortcodes, just not WPDiscuz shortcodes...
 

 
Posted : 17/09/2024 10:04 pm
(@legendsof)
Posts: 17
Eminent Member
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
 

And I am doing the following to execute it in my PHP file:  

<?php echo do_shortcode('[wpdrating metakey="all" show-label=false itemprop=0 id="3614"]'); ?>

 

But it is not working. With other shortcodes works fine.


 
Posted : 17/09/2024 10:16 pm
Asti
 Asti
(@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
 

@legendsof 

Please open your own support topic and leave some example URL to allow us to check  the issue. 


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 : 18/09/2024 1:02 pm
(@legendsof)
Posts: 17
Eminent Member
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
 

Also tried:

<?php echo do_shortcode('[wpdrating metakey="all" show-label=false itemprop=0 postid="3614"]'); ?>

OK will open a support case.


 
Posted : 18/09/2024 5:59 pm