Finding and adding custom fields together
-
Hello all,
I’m very new to WordPress, so I hope this isn’t terribly easy and I’m just being foolish, but I can’t figure it out.
I’d like to add a custom field in each post with a number, then have a loop on the front page that goes through all the posts and gets all those fields and adds them.
Example:
/*Run Through Posts*/
Post #1: apples = 1
Post #2: apple = 3
Post #3: apples = 0
Post #4: apples = -2
/* Front Page*/
Total Apples: 2I’m assuming this is possible, but can someone point me in the right direction?
I’ll continue to work on this and update the forum if I come up with a solution.
Thanks!
–Nick
The topic ‘Finding and adding custom fields together’ is closed to new replies.