Create multidimensional array of taxonomies
The following should work, if I understand what you want correctly. Basically the only change is where you display the list items – instead of echoing it, you save it to the array. We also know the store type at that point, so we can save them both in their own array as a new … Read more