Home › Forums › Add-ons › Repeater Field › Orderby title instead of foreach › Reply To: Orderby title instead of foreach
Ahh I see the problem now. Instead of having multiple Relationships within one Repeater field, you created a repeater that has a
– Relationship field to one product
– A file
– Another file
Therefore we get the $ids for each Repeater field which will only return one as we only have one Relationship at the time.
What the code tries to do is to order the $ids within each repeater, but there is only one. I’ll look at a different solution later today.
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.