Hi John, thanks a lot for this piece of code.
It won’t work until we correct the sort function namespace 😉 (sortByGroup and not shortByGroup).
Something else : from this code, the company group (h2) is displayed for every row because it’s in the foreach loop.
Do you think there’s a way to get the value of company group and display it only one time per group ?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users