Home › Forums › Add-ons › Repeater Field › Combine results from multiple repeater fields › Reply To: Combine results from multiple repeater fields
Hi @AKA Digital
To achieve the above, you would:
1. Perform a get_posts query to load and loop through the desired post objects
2. For each post object, load the repeater field data via get_field and add each row to a variable (defined outside of the loop)
3. After your loop is complete, this variable will not hold all your rows of repeater field data
4. Sort the variable just like in this tutorial:
http://www.advancedcustomfields.com/resources/how-to/how-to-sorting-a-repeater-field/
Good luck
Thanks
E
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.