How to make an addition of a meta value for each user
-
Hello everybody.
I’m running a photo contest web, and the rules are:- Each photo gets a score of each member jury, so each image gets 3 scores.
- The global score of the image is the addition of the 3 scores.
- The total score of the photographer is the addition of all the scores of all the images.
Each image is in a different post, each member of the jury scores in a different custom field and I’ve managed to calculate the global score of the image by adding up the three custom fields and save it to another custom field of the post.
But I’m trying to calculate the next step: add up all the scores of all the images of each user and save it to a meta value I’ve added for each user.
I have tried the miles example of this page, but it gives me the total addition of all photos, not for every user: CodexI don’t know how to do it and I’m not sure if my english is god enough for you to understand.
Anyone can help me? Thank a lo in advance.
- The topic ‘How to make an addition of a meta value for each user’ is closed to new replies.