Skip to:
Content
Pages
Categories
Search
Top
Bottom

List all groups group By groupmeta value

  • Avatar of daivat
    daivat
    Participant

    @daivat

    Hello Team,

    I unable to find a way which solve my following problem, please help me.

    Problem:
    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
    ————
    NY Group 1 link
    NY Group 2 link

    Hawaii
    ————
    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.

    Thank you.

    Regards,
    Daivat.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.