Hi Brajesh,
Thanks for your reply. Yes, please do that.Only Tabs, but very important for my presentation with people from these Villages!
Regards,
HansHi Brajesh,
You already have it in BuddyPress Member Types Pro – I mean the way to create the tabs within nouveau… 😉
…over there it’s working perfect.Waiting for you…
HansHi Hans,
Please use this code in your bp-custom.phpadd_filter( 'bp_nouveau_get_groups_directory_nav_items', function ( $nav_items ) { $group_types = bp_groups_get_group_types( array(), 'objects' ); $pos = 25; foreach ( $group_types as $group_type => $details ) { if ( ! $details->has_directory ) { continue; } $nav_items[ 'group-type-' . $group_type ] = array( 'component' => 'groups', 'slug' => 'group-type-' . $group_type, 'li_class' => array( 'no-ajax', 'group-type-' . $group_type ), 'link' => bp_get_group_type_directory_permalink( $group_type ), 'text' => $details->labels['name'], 'count' => false, 'position' => $pos, ); $pos + 10; } return $nav_items; } );
Regards
BrajeshHi Brajesh,
Working perfect. Many thanks!One last request: would you please add the count bubbles for these additional groups?!?
Regards,
HansHi Hans,
Thank you.I intentionally did not add the count as it is not efficient for group types (There is no direct function to get count).
I will suggest avoiding the count for now.
Regards
BrajeshHi Brajesh,
Got it. I’m very happy with your support. Thank you!Regards,
HansThank you Hans.
All the best with the presentation 🙂Regards
Brajesh
You must be logged in to reply to this topic.