Skip to:
Content
Pages
Categories
Search
Top
Bottom

Groups of Friends list


  • peter-hamilton
    Participant

    @peter-hamilton

    Hi

    Is there, or is there a way to show a list of only the groups created by the friends of the logged in user.

    Thanks in advance.

    P.H.

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

  • shanebp
    Moderator

    @shanebp

    Maybe there’s an easier way, but I’d do this…

    Use friends_get_friend_user_ids(...) to get the ids of the logged-in user’s friends.

    Pass each friend id thru groups_get_groups in user_id field.

    Use groups_is_user_creator( $user_id, $group_id ) to determine if the friend was the creator of each group.


    peter-hamilton
    Participant

    @peter-hamilton

    Thanks for that, I dont know any php, but that looks like something I can achieve with cut-n-pasting.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Groups of Friends list’ is closed to new replies.
Skip to toolbar