Title: Can you summarize data using wp_query (min, max, mean, etc)?
Last modified: August 20, 2016

---

# Can you summarize data using wp_query (min, max, mean, etc)?

 *  [Beerninja](https://wordpress.org/support/users/beerninja/)
 * (@beerninja)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/summary-stats-using-wp_query/)
 * I’m writing a plugin that adds some raw data tracking via custom post type. My
   archive template for the CPT is not intended to list posts but rather to summarize
   the custom meta data in aggregate form (min, max, mean, etc) over particular 
   time periods.
 * I’m new to working with WordPress so I’m wondering if there are easy ways to 
   accomplish this using wp_query, and I just haven’t been able to find those methods
   in documentation, or if I need to save the data from my Loop into an array and
   run the math from there.
 * Thanks in advance for any nudges in the right direction!

The topic ‘Can you summarize data using wp_query (min, max, mean, etc)?’ is closed
to new replies.

## Tags

 * [cpt](https://wordpress.org/support/topic-tag/cpt/)
 * [data manipulation](https://wordpress.org/support/topic-tag/data-manipulation/)

 * 0 replies
 * 1 participant
 * Last reply from: [Beerninja](https://wordpress.org/support/users/beerninja/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/summary-stats-using-wp_query/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
