@drebabels
13 years, 7 months ago
I needed to do this recently too… this is the technique I used:
$group = groups_get_group( array( ‘group_id’ => $group_id ) );
Found on http://bluemandala.com/buddypress-plugin/127/buddypress-get-group-details-from-group_id/
So in order to get the link to your groups try something like this
global $bp; $group = groups_get_group( array( ‘group_id’ => $group_id ) ); home_url( $bp->groups->slug . ‘/’ . $group -> slug )
13 years, 9 months ago
You can also try this method if you aren’t running WPMU, and nothing else seems to work for you. Just a note, it does require you to change a BP core file. http://adlatitude.posterous.com/how-to-include-recaptcha-into-buddypress
Just a note “ echos the count. If you want to return the count without the echo use “