Skip Navigation

[Resolved] Setting star rating on post types

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user would like to implement and display a star ratings for a custom post type inside views.

Solution:
Toolset does not include a Star Rating system by default. To implement one for your custom post type, you will need to use a 3rd plugin or implement some custom code for this feature.

Below some possible approaches:
- https://toolset.com/forums/topic/best-way-to-create-a-star-rating-field-in-types-with-graphic-output-in-views/
- https://toolset.com/forums/topic/adding-reviews-and-star-rating/
- https://toolset.com/forums/topic/filtering-by-star-rating-and-reviews/

Calculating the rating is not possible in Views by default, it requires some custom code as well. Custom code is beyond the scope of our support. At this point, I would suggest considering our certified partners https://toolset.com/consultant/
You will get the custom assistance you need to get on with your project.

A 3rd Party Plugin example https://wordpress.org/plugins/wp-postratings/

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by John Mac 4 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#1573353
Listing.png
Screenshot 2020-04-03 at 21.28.56.png

##Tell us what you are trying to do?
I'm working on a website with a custom post type for a "stack" of products. (CPT listing another type of posts)

I would like to be able to have logged in users set a 1-5 star rating on these posts. The user should be able to click a 5 star rating when visiting the post.

The avarage rating should also be visible on this post-type's archive/list page. Which is displaying "cards" for each post. I'm adding some screenshots to this ticket.

Will be possible with Toolset?

##Is there any documentation that you are following?
I have been doing some search but didn't find any topics on post rating or star-rating. I have tried a plugin, but that was not so easy.

##Is there a similar example that we can see?
Adding screenshots.

What is the link to your site?
hidden link

#1573507

Thank you for contacting us here in the Support Forum

Toolset does not include a Star Rating system by default. To implement one for your custom post type, you will need to use a 3rd plugin or implement some custom code for this feature.

Below some possible approaches:
- https://toolset.com/forums/topic/best-way-to-create-a-star-rating-field-in-types-with-graphic-output-in-views/
- https://toolset.com/forums/topic/adding-reviews-and-star-rating/
- https://toolset.com/forums/topic/filtering-by-star-rating-and-reviews/

Calculating the rating is not possible in Views by default, it requires some custom code as well. Custom code is beyond the scope of our support. At this point, I would suggest considering our certified partners https://toolset.com/consultant/
You will get the custom assistance you need to get on with your project.

I can also suggest to locally test some 3rd Party Plugins to see if you can use them nicely with Toolset. For example https://wordpress.org/plugins/wp-postratings/

I hope this helps. Let me know if you have any questions.

#1573911

I'll consider this as a solution for now and I will try this out. A WP plugin should work as long as the overall rating also can be displayed on archive pages. Thanks!