Skip to:
Content
Pages
Categories
Search
Top
Bottom

Skipping groups based on ID

  • @kipprsnak1

    Member

    Okay, so I have a few groups that I don’t want to display. I’m using S2 Member so only groups a person belongs to will display in their group index regardless of group status (i.e. hidden, private).

    I have code like this:
    `
    <?php if (bp_get_group_id() == 33 && !current_user_can ("access_s2member_ccap_xx")) {
    continue;}
    else {?>`
    Display the group.

    All it seemed to work before and now it seems not to. In any case, I can’t get bp_get_group_id() to return anything and I’m sure I’m missing something silly and small. I was just hoping someone might have a guess as to what’s not working there….

    Thanks,

  • The topic ‘Skipping groups based on ID’ is closed to new replies.
Skip to toolbar