Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

Ratibg shortcode for specific page  

  RSS

Arskrigicioniec
(@arskrigicioniec)
Active Member
Joined: 9 months ago
Posts: 8
10/04/2020 8:03 am  

Is there a kind of shortcode that could output rating from specific page to any place? For example, I want to output rating from page Id 5555  in another page.

This topic was modified 2 months ago by Arskrigicioniec

Quote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 4129
10/04/2020 1:29 pm  

@arskrigicioniec,

Please add the post_id attribute in the shortcode (for each post it’s own post_id) and check it.

Your shortcode should look like this:

[wpdrating metakey="all" show-lable=true show-count=true show-average=true itemprop=true post_id="CURRENT_POST_ID"]

For example for the post with post_id= 5555  you should use the following shortcode:

[wpdrating metakey="all" show-lable=true show-count=true show-average=true itemprop=true post_id="5555"]


ReplyQuote
Arskrigicioniec
(@arskrigicioniec)
Active Member
Joined: 9 months ago
Posts: 8
10/04/2020 1:33 pm  
Posted by: @astghik

@arskrigicioniec,

Please add the post_id attribute in the shortcode (for each post it’s own post_id) and check it.

Your shortcode should look like this:

[wpdrating metakey="all" show-lable=true show-count=true show-average=true itemprop=true post_id="CURRENT_POST_ID"]

For example for the post with post_id= 5555  you should use the following shortcode:

[wpdrating metakey="all" show-lable=true show-count=true show-average=true itemprop=true post_id="5555"]

Thanks! I think you should add it to the documentation. I read it yesterday and couldn't see any explanation about this.


ReplyQuote
Arskrigicioniec
(@arskrigicioniec)
Active Member
Joined: 9 months ago
Posts: 8
10/04/2020 5:39 pm  

I've found that shrotcode doesn't work if I use it in pages to which is applied by id a comment form without the rating.


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 4129
11/04/2020 1:23 pm  

@arskrigicioniec,

This issue is already fixed in the new wpDiscuz 7 version. 

You can download and check the new version here:  https://beta.wpdiscuz.com/demo/


ReplyQuote
Share: