Skip to:
Content
Pages
Categories
Search
Top
Bottom

check group name exist or not

  • Hai,

    Has any one know how to check the group name already exist or not ?
    What is the if condition ? Please help me I am struggling.

Viewing 5 replies - 1 through 5 (of 5 total)

  • PJ
    Participant

    @pjnu

    Users can create groups with the same name. For example, if I create a group called “Hello” then create another “Hello,” the site will have two “Hello” groups but the slugs will be different.

    `http://website.com/groups/hello/`
    `http://website.com/groups/hello-1946449030/ `

    Hai PJ ,
    Ya thats cool but I need to check the condition whether the group name exist with menu name which I build in wordpress 3
    Let me know do you have any Idea ?

    Look in groups_check_slug()


    PJ
    Participant

    @pjnu

    Half credit :)

    Yaa I found the solution LIke below

    while ( bp_groups() ) : bp_the_group();
    if ( bp_group_is_forum_enabled() && 'public' == bp_get_group_status() && 'group_name' == bp_get_group_name() ) :

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘check group name exist or not’ is closed to new replies.
Skip to toolbar