wpDiscuz - WordPress Comment Plugin
shorcode for rating...
 
Share:
Notifications
Clear all

[Solved] shorcode for rating article

16 Posts
2 Users
0 Likes
190 Views
Andrea P
Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 2 months 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: 5071
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

Hi,

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

Andrea P
Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 2 months 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: 5 years ago

Illustrious Member
Posts: 5071

@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
(@andrea-p)
Joined: 2 months ago

Active Member
Posts: 9

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

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

Illustrious Member
Posts: 5071

@andrea-p,

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

Andrea P
(@andrea-p)
Joined: 2 months 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: 5 years ago

Illustrious Member
Posts: 5071

@andrea-p,

Have you tried to remove the spaces?Β Β 

Andrea P
(@andrea-p)
Joined: 2 months 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: 5 years ago

Illustrious Member
Posts: 5071

@andrea-p,

Please confirm that the rating field is created.Β Β 

Andrea P
(@andrea-p)
Joined: 2 months ago

Active Member
Posts: 9

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

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

Illustrious Member
Posts: 5071

@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/

Andrea P
Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 2 months ago

but is not possible add a shortcode custom?

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

Illustrious Member
Posts: 5071

@andrea-p,

Please rephrase your question.Β Β 

Andrea P
Posts: 9
Topic starter
(@andrea-p)
Active Member
Joined: 2 months ago

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

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

Illustrious Member
Posts: 5071

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

Share: