Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts

Question

I’m trying to add property values for each user on a real estate website.

I have a custom post type “properties.” I’d like to take the “listing_price” from all of them and add them up to show how much that agent has for active listings.

Really don’t even know where to start. I see threads to add all custom post type meta values but not for a specific user.

thank you

0
, tryin2learn 9 months 0 Answers 88 views 0

Leave an answer