This support ticket is created 3 years 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Each service (parent) can display several reviews (child).
Among the custom fields, there's "rating" (number). Between 1 and 5.
For each service, I would like to show:
- total number of reviews,
- average of the ratings.
I also would like to use that for Rankmath, who has a module for schema & ratings. If not possible, then bypass Rankmath to produce a code to use schema.
Hello and thank you for contacting the Toolset support.
Toolset does not offer a built-in way to calculate sums and averages. You will need custom code to implement it. Either by using a custom shortcode inside the view or by producing a shortcode that uses the relationships API to get the child posts and calculate the results for them.