Home › Forums › ACF PRO › Group Custom Post Types in Relationship field output › Reply To: Group Custom Post Types in Relationship field output
Thanks for your reply John.
I can’t seem to get it to work. Was your code to fully replace what I had?
Here is what I am trying to format the results of the relationship field…
CPT 1
– result 1
– result 3
– result 4
CPT 2
– result 2
– result 6
CPT 3
– result 5
etc etc..
But because the user may pick the CPT in random order the results are grouped based on the order selected in the relationship field…
CPT 1
– result 1
CPT 2
– result 2
CPT 1
– result 3
– result 4
CPT 3
– result 5
CPT 2
– result 6
Hope this makes sense?
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.