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
Notifications
Clear all

Ratibg shortcode for specific page

5 Posts
2 Users
0 Reactions
1,579 Views
(@arskrigicioniec)
Active Member
Joined: 7 years ago
Posts: 8
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
  [#5673]

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.



   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
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
 

@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)
Active Member
Joined: 7 years ago
Posts: 8
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
 
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)
Active Member
Joined: 7 years ago
Posts: 8
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
 

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
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
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
 

@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:
Scroll to top