Title: Sum within loop ?
Last modified: November 28, 2019

---

# Sum within loop ?

 *  [dezpfab](https://wordpress.org/support/users/dezpfab/)
 * (@dezpfab)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sum-within-loop/)
 * Hi,
 * I am trying to calculate an average within a post type. I’ve tried this but no
   luck yet :
 *     ```
       [calc]
       [loop post=avis]
       [field note_client]/4
       [/loop]
       [/calc]
       ```
   
 * I need to sum the [field note_client] but not sure if this is feasible.
 * Any idea on how to achieve this ?
 * Thanks !

The topic ‘Sum within loop ?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dezpfab](https://wordpress.org/support/users/dezpfab/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/sum-within-loop/)
 * Status: not resolved