Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Sub-groups


  • markyeoj
    Participant

    @markyeoj

    Hello, is there a plugin or a way that will allow me to add a subgroup to a parent group?

    Thanks

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

  • sharmavishal
    Participant

    @sharmavishal

    Use BP group hierarchy fork on github


    markyeoj
    Participant

    @markyeoj

    Thanks it works 🙂


    sharmavishal
    Participant

    @sharmavishal

    Great…adjust the CSS as per your theme…


    maxgx
    Participant

    @maxgx

    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?


    sharmavishal
    Participant

    @sharmavishal

    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


    maxgx
    Participant

    @maxgx

    cool, thanks!


    r-a-y
    Keymaster

    @r-a-y

    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


    sharmavishal
    Participant

    @sharmavishal

    @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


    r-a-y
    Keymaster

    @r-a-y

    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.


    sharmavishal
    Participant

    @sharmavishal

    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


    r-a-y
    Keymaster

    @r-a-y

    You can only manage group types when editing a group in the WP admin dashboard’s “Groups” page at the moment.


    sharmavishal
    Participant

    @sharmavishal

    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


    r-a-y
    Keymaster

    @r-a-y

    Yeah, that’s right.

    We ran out of time to add these features, but we will in BP 2.7.


    sharmavishal
    Participant

    @sharmavishal

    great!!! excellent stuff @r-a-y

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Skip to toolbar