Introduction
By default, BuddyBoss does not allow setting a default view for group pages. You can set the default page load view to Discussions using a small custom function in your active theme. This guide explains how you can set the Group Default Load Page to Discussions
Custom Workaround
Before proceeding, make sure you have a complete site backup.
- In your WordPress admin dashboard, go to Appearance > Theme Editor.
- Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
- From the Theme Files list, click Theme Functions (functions.php).
- Paste the following code just before the closing PHP tag (?>):
function bbg_set_group_default_extension( $ext ) {
return 'forum';
}
add_filter( 'bp_groups_default_extension', 'bbg_set_group_default_extension' );- Click Update File to save your changes.
Troubleshooting and FAQs
Q: The group page is still loading another tab, what should I check?
A: Ensure the code is added to the active theme’s functions.php and clear any caching plugins.
Q: Can I set a different default tab?
A: Yes, replace ‘forum’ with other group extensions like ‘members’ or ‘activity’.
Q: Will this affect all groups on the site?
A: Yes, this sets the default view for all group pages.
Q: Can I revert this change easily?
A: Yes, remove the code from functions.php and save.
Q: Who can I contact for further assistance?
A: Check the BuddyBoss Support Policy or consult a developer.