Home › Forums › General Issues › Review system with ACF › Reply To: Review system with ACF
One way is to set a field called avg rating that can hold num of reviews and total score on the post that the reviews are attached to and whenever a new review is approved to hook into it with acf/save_post (https://www.advancedcustomfields.com/resources/acf-save_post/)
and update the field of the main post with the new values adding +1 to total and +customer rating to the total score.
then on shortcode just do the simple total/num_reviews
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.