WordPress.org

Ready to get started?Download WordPress

Forums

BP Group Hierarchy
Adding Group Tree to Theme (2 posts)

  1. Matt
    Member
    Posted 2 years ago #

    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">
    	<ul>
    		<li id="groups-order-select" class="last filter">
    
    			<?php _e( 'Order By:', 'buddypress' ) ?>
    			<select>
    				<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' ) ?>
    			</select>
    		</li>
    	</ul>
    </div><!-- .item-list-tabs -->

    Any ideas?

    http://wordpress.org/extend/plugins/bp-group-hierarchy/

  2. David Dean
    Member
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic