This topic has 5 replies, 2 voices, and was last updated 11 years by Tenshi.

  • Author
  • #3852
     Tenshi
    Participant

    Hello! Is there a way to display the group’s current members (maybe around 4 to 5) in the group search listing? Should look something like this:

    http://puu.sh/4HDed.png

    I asked the code before but I couldn’t get it to work 🙁

    #3878
     SQadmin
    Keymaster

    See an example here: http://pastebin.com/J5sEfVNt

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3881
     Tenshi
    Participant

    Thanks! I’ll check it out.

    #3886
     Tenshi
    Participant

    Hello! I can’t seem to make the code work. It still shows “This group has no members.” even if it has 2 members (one admin, one normal member): http://puu.sh/4HLuz.png

    This is what my groups-loop.php looks like: http://pastebin.com/rcPabP9y

    If you want to check the backend, please let me know. Thanks!

    #3902
     SQadmin
    Keymaster

    At line 42 you need to have
    <?php if ( bp_group_has_members( 'group_id='.bp_get_group_id().'&exclude_admins_mods=false' ) ) : ?>

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3927
     Tenshi
    Participant

    Thanks! It works! http://puu.sh/4J8GA.png

    Just trying to adjust it so they’ll all appear in one row.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?