Add All Values of a Custom Field from All Posts (2 posts)

  1. Clicknathan
    Posted 5 years ago #

    I want to add up all of the values of a single custom field and output that number.

    So I have a custom field that is always a number. I'd like to add all of those numbers up and echo the total.

    I'd also like to be able to restrict this to the values from posts in a single category.

    Anyone have any ideas on how I might achieve that?

  2. Clicknathan
    Posted 5 years ago #

    C'mon math whizzes and code buffs, you know you want to figure this out!

Topic Closed

This topic has been closed to new replies.

About this Topic