Home › Forums › Front-end Issues › Get Total of Matching Fields in Repeater Within Custom Query › Reply To: Get Total of Matching Fields in Repeater Within Custom Query
There isn’t any way to do a query in WP using WP query functions that will allow you to get this total.
You would need to query all posts, loop over those posts, loop over the repeater for each post, keep a running total of all of the values.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.