Support » Plugin: BP Group Hierarchy » [Plugin: BP Group Hierarchy] Adding Group Tree to Theme

  • How would I add the Group Tree functionality to a custom theme? When I activate the Group Tree options, nothing happens. I am assuming that the calling up of the groups is not being done the same was as the default BP theme. This is what I see:

    <div class="item-list-tabs no-ajax" id="subnav">
    		<li id="groups-order-select" class="last filter">
    			<?php _e( 'Order By:', 'buddypress' ) ?>
    				<option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    				<option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>
    				<option value="newest"><?php _e( 'Newly Created', 'buddypress' ) ?></option>
    				<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    				<?php do_action( 'bp_groups_directory_order_options' ) ?>
    </div><!-- .item-list-tabs -->

    Any ideas?

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


    If you want to add it alongside your normal group list, make sure your custom theme has a bp_groups_directory_group_filter action in its groups/index.php file.

    If you just want to display the group tree, you’ll have to modify your theme’s groups/groups-loop.php to make it more like the templates/tree/tree-loop.php from the plugin.

    Either way, you’ll also have to include the includes/hierarchy.js file from the plugin, or include its contents in one of your scripts. Without it, you’ll just get a list of toplevel groups.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: BP Group Hierarchy] Adding Group Tree to Theme’ is closed to new replies.