Sum of custom field values
I am using WP for a project log – each post has a custom field (‘duration’) to log an activity’s duration in hours.
I would like to be able to sum these values to produce a cumulative total for project hours to date.
I am not familiar with PHP, nor with SQL, and so I hope someone can suggest the form which a query to do this would take, and whether (as I suspect) I will need to do a type conversion before summing the values?
- The topic ‘Sum of custom field values’ is closed to new replies.