List all groups group By groupmeta value
I unable to find a way which solve my following problem, please help me.
I have created a plugin which asks state name (like NY, Hawaii, etc) while creating new group. Now I have to list all groups based on their states. State value is stored in ‘bp_groups_groupmeta’ table with
meta_key=’groupstate’. Suppose i have 5 groups with 2 different states then output should look like below:
NY Group 1 link
NY Group 2 link
Group 3 link
Group 4 link
Group 5 link
Hope you understand what i want to achieve.
Please anybody suggest how can i achieve it.
- The topic ‘List all groups group By groupmeta value’ is closed to new replies.