The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
shorcode for rating...
 
Share:
Notifications
Clear all

[Solved] shorcode for rating article

16 Posts
2 Users
0 Reactions
1,134 Views
Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 3 years ago

Hello, 

is possible add a custom shortcode to show the rating of article?

in the "Article and Comment Rating" page on "there are only this options:

 
i need show the rating panel on a custom block
 
thank you
 
Topic Tags
15 Replies
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

Please read this FAQ: https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode-2/

Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 3 years ago

i add 

do_shorcode('[ wpdrating metakey="all" show-label=false itemprop=false postid="363 " ]');

where 363 is the post id of page, but not working, the page don't show the rating box

9 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@andrea-p

do_shorcode('[ wpdrating metakey="all" show-label=false itemprop=false postid="363 " ]');

please correct the phrase shortcode and it'll work fine: 

do_shortcode('[ wpdrating metakey="all" show-label=false itemprop=false postid="363 " ]');
(@andrea-p)
Joined: 3 years ago

Active Member
Posts: 9

@asti hello, i try, but nothing changed (ps i removed the space after 363)

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@andrea-p,

Please leave some screenshots or a video where we can see the shortcode added in the files. 

(@andrea-p)
Joined: 3 years ago

Active Member
Posts: 9

@asti

sc1

  with space beetween [ and wpdrating seems that not recognized the shortcode because in the page is printed [ wpdrating metakey="all" show-label=false itemprop=false postid="363" ]

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@andrea-p,

Have you tried to remove the spaces?  

(@andrea-p)
Joined: 3 years ago

Active Member
Posts: 9

@asti yes and not working, the shortcode code aren't displayed but there are not the rating box

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@andrea-p,

Please confirm that the rating field is created.  

(@andrea-p)
Joined: 3 years ago

Active Member
Posts: 9

@asti ok i add to the form and it showed but is not clickable

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@andrea-p

Don't follow you well. The shortcode just displyes the rating result wherever you want. 

Actually, wpDiscuz has two post rating options:

  • Stand-alone Post Rating - this option allows users to rate articles without leavening a comment. 
  • Post Rating Based on Comment Rating Field - this option is comment-depended. You should create a “Rating” custom field in comment form allowing people to rate while they leave a comment. The shortcode can be used only for this type and as it said above it just displyes the rating result.

Please attentively read this doc to better understand the wpDiscuz rating types: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/article-and-comment-rating/

Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 3 years ago

but is not possible add a shortcode custom?

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@andrea-p,

Please rephrase your question.  

Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 3 years ago

is possible add the rating of article in a custom position without using the_content filters?

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

We're really sorry, but there is no shortcode for the Stand-alone Post Rating option. 

Share: