Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Dean

    (@ddean)

    Honestly, you probably don’t want to use it for that. You probably want to use bp_has_groups_hierarchy(), which works like the normal BuddyPress group function bp_has_groups(). If you pass it an array with a key of parent_id and the value as the ID of the current group, you can use all the normal BP group template functions to loop over the child groups.

    But if you want to use it for that, just call it and it will return an array of group IDs for children of the current group. You’d then need to create a BP_Groups_Group or BP_Groups_Hierarchy object from each ID to do something useful with them.

    I should really write a post about this, huh. :/

    Thread Starter volpv

    (@volpv)

    Thank you David for your steer 🙂

    I will give it a try. But detailed post would be great, for all like me who are still finding their way in the world of WP+BP

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: BP Group Hierarchy] func for getting a list of child groups’ is closed to new replies.