Use BP group hierarchy fork on github
Great…adjust the CSS as per your theme…
sorry sharmavishal, is this the link or is there any more recent version?
and do you know of any plans for merging this feature into BP itself?
go to pull requests
https://github.com/ddean4040/BP-Group-Hierarchy/pulls
exampe: check christianwach request…you would get the files he would have modified….
you can see the latest one would be for BuddyPress 2.6 which would release soon…
dont think so this would be merged in bp…the moderators would have better idea on this…but BP Group types is comming in BuddyPress 2.6..just wait for that if that would meet your requirements cause that would be in the core of bp…
https://buddypress.trac.wordpress.org/ticket/6784
but BP Group types is comming in BuddyPress 2.6..just wait for that if that would meet your requirements cause that would be in the core of bp…
For BuddyPress 2.6, group types will not allow you to sort groups into sub-groups. It’s only a developer feature for organizing groups into different types (think tagging posts) at the moment. We hope to expand this feature in future versions.
Check out the codex article for more info:
https://codex.buddypress.org/developer/group-types
@r-a-y so i can bp group types following the codex and add it in bp-custom.php?
not a coder so kindly help
so i can bp group types following the codex and add it in bp-custom.php?
Yes, you can add the code to wp-content/plugins/bp-custom.php
.
thanks @r-a-y
i added this to bp-custom.php
function my_bp_custom_group_types() {
bp_groups_register_group_type( ‘team’, array(
‘labels’ => array(
‘name’ => ‘Teams’,
‘singular_name’ => ‘Team’
)
) );
}
add_action( ‘bp_groups_register_group_types’, ‘my_bp_custom_group_types’ );
how do i tag a group to teams/team? i dont see anything in manage settings of the group
You can only manage group types when editing a group in the WP admin dashboard’s “Groups” page at the moment.
great it works….so basically no front end filter for group types right? would need to use fetching group types code in the codex right?
thanks once again
Yeah, that’s right.
We ran out of time to add these features, but we will in BP 2.7.
great!!! excellent stuff @r-a-y