I’m working on a member page where I use a custom post type with a custom taxonomy. My custom post type is called “member” and my custom taxonomy is called “member_groups”.
I want to list all the members but group them together into their respective groups.
So to be clear, I’ve 35 members divided into 9 groups – so instead of making the same query nine times I want to do it once but group them together, so that Member1, Member4 and Member 11 is grouped together in one group, called “Marketing”.
I’m using WP_Query to retrieve all posts under post type member. I’ve tried different attempts but with no successful result.
Any help or suggestions would be much appreciated.
Sincere
- Mestika
