Call Rating Value o...
 
Share:
Notifications
Clear all

Question [Solved] Call Rating Value on Home Page or elsewhere

4 Posts
2 Users
0 Likes
283 Views
Posts: 2
Topic starter
(@beamkiller)
New Member
Joined: 7 months ago

Hi Team,

Is there a shortcode or a PHP snippet I can use to get the rating for the post by ID for example?
I want to create a layout like this and also add rating and approved comment count.

image

The comment count is working ok but I need to access the rating for the post.
Is there a way for that?

Thanks.

 

Topic Tags
3 Replies
Asti
Posts: 6975
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 years ago

Hi @beamkiller,

You can use the shortcode provided here:  https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode-2/

2 Replies
(@beamkiller)
Joined: 7 months ago

New Member
Posts: 2

@asti Thanks for the answer.

Does this method work with the new rating system without the commenting part?
Because adding the shortcode displayes nothing.

image
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 6975

We're really sorry, but the shortcode works for the post rating based on Comment Rating Field. 

Share: