Skip Navigation

[Résolu] Implement star rating for posts, Get average rating and add filter for ratings

This support ticket is created Il y a 7 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

Marqué : 

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par marcB-6 Il y a 7 années.

Assisté par: Minesh.

Auteur
Publications
#594963
Screenshot_3.png
Screenshot_4.png

I would like to implement star rating for my custom posts.
guests will give rating for eg. resturant.
Based on given rating to a particular post I would like to display its average using stars & I would like to implement filter for star rating.

Post page : lien caché
from above link visitors can give rating.

Please check attached screenshot for better understanding.

#595029

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - there is no such feature exists. To implement such feature it will require some custom programming and I'm afraid that this is beyond the scope of our support policy.

If you need custom programming with your project, please feel free to contact our certified partners:
=> https://toolset.com/consultant/

However - I've nice tutorial kind of ticket that I would like to share with you that will help you to implement star rating with your project. Please go through the following tickets where user shared step by step information how you can implement star rating.
=> https://toolset.com/forums/topic/searching-book-review-child-cpt-and-book-parent-cpt-by-star-ratings/#post-406125
=> https://toolset.com/forums/topic/save-child-review-rating-avg-to-parent-book-radio-field-to-allow-searching/

#595046

Thanks for the articles.
I have a question...I have installed this plugin : https://wordpress.org/plugins/wp-postratings/
I see it is working fine but the problem is with filters.
So, If i create one custom field and I save value of average rating in that field, then If I use that field for filter..Will it work?

#595064

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - it should be a Types number field and should be associated with your post type then you can add it as filter.

#595068

Yes.. I will create it using toolset itself..

#595086

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

thats OK. Then you will be able to add it as normal custom field filter.

#595088

Ok Thanks