buddypress group menu

While working on a buddypress project for a site, we needed to create custom content in the group area. This would necessitate the creation of group level navigation and corresponding pages.

The Dilemma

New to the plugin, we wanted a quick way to get up and running but found it difficult to figure out exactly how to get your own link in the group menu. Once you do get the link in the menu, how do you render the page?

The Solutions

Turns out there are two solutions to the issue. One is wordpress based and the other is a buddypress function/procedure which handles everything. Lets start with the wordpress approach

wordpress

With wordpress we can simply tap into one of the buddypress events. Specifically, we would want to tap into the “bp_group_options_nav” event. Right there you can echo your li elements

Buddypress

Now this is the more complete solution. You can do everything from simply facilitating the group level menu item to actually generating the page itself and integrating into group creation.

Sub Menus

Sub menus are not covered by either approch. Turns out, once you generate the page, you must generate any sub menu’s on your own also. We recommend creating a¬†separate¬†function to handle this.

You can leave a response, or trackback from your own site.

Leave a Reply


Notice: Undefined variable: user_ID in /home/superdupa/public_html/wp-content/themes/freshlook/comments.php on line 54

You must be logged in to post a comment.