Link Page to BuddyPress Groups
I created this small plugin on the request of one of our members. The plugin allows site admins to link a page to BuddyPress Group. It simply shows the page in the navigation menu of the group Once the user clicks the link, he/she gets redirected to the regular pages.
Here are a few screenshots to show it working:-
Single Group edit screen in dashboard:-
By default, it only allows site admins to associate pages to groups. If you want to enable this feature for group admins, please put the following code in your bp-custom.php
add_filter( 'bp_allow_fronted_group_page_liking', '__return_true' );
Download & Installation:-
I am releasing this plugin hoping that some of you might find it useful. Looking forward to hear your suggestions in the comments.
@sbrajesh, is it possible for this to show that page inside of buddypress vs just a link? I want to create a homepage for my group using visual composer, but I don't want the page to link I want it to show up inside of buddypress groups. Hope that makes sense.
I am sorry but the above code won't do that. You will need to use BP Group Extensions API to add a page. It is doable though.
Thanks for sharing this wonderful plugin…. Is there a way that I can get the group to link to a custom post page rather than a "page" using this plugin?
yes, you can use a custom post type instead of the page. It is just a one page plugin with only few line.
I will recommend modifying this line
and using a cusotm post type dropdown instead.
Hi… is it possible to have the page links hidden when the group is private and unavailable to a user that is not a member of the group.
You can easily modify the plugin to do that.
Please see the show_links function that allows doing it.
hope that helps.