List users by sum of all their posts’ custom field values
You would probably be best of writing your own SQL query, for performance-reasons. Another option is to store the mileage separately in a custom field for each user. As for writing your own SQL query: you could query all users, then join their posts, then join the postmeta-table. After that, you can use the SQL … Read more