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

[Solved] wpDiscuz [ wpdrating ] shortcode

1 Posts
1 Users
0 Likes
2,904 Views
Asti
 Asti
(@asti)
Illustrious Member Support
Joined: 6 years ago
Posts: 7119
Topic starter  

wpDiscuz allows creating custom comment forms with custom fields. If you have a Rating Field in comment form the rating result will be displayed for each blog post and page.

The "Display Ratings" option allows you to manage the rating result location.

Also, you can use [wpdrating] shortcode in post content to display rating average and stars.

The Shortcode Attributes are:

  • metakey - is the value of the meta key for the rating field. If you set it "all" the total count will be displayed. 
  • show-lable  - if you set it "true" the "Name For Total" will be displayed, otherwise, it will not.
  • itemprop - this property is being used for showing aggregates. If you set it false it'll not be indexed by Google. More info here: https://wpdiscuz.com/community/f-a-q/post-rating-using-aggregate-rating-schema/
  • postid - you can display the rating of the specific post, just insert the ID of the post as a value of the postid attribute. 

metakey

Full shortcode example:

[ wpdrating metakey="all" show-label=false itemprop=false postid="15" ]

It can be put in the post/page content, wherever you want. 

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.


   
Share: