How to get group id while in activity-loop.php
I want to place static content on an individual groups home page. Ideally, I’d like to simply disable the activity stream from the admin menu and then implement this, but I’ve realized that the easiest thing to do would be to simply enable activity streams and then modify my BuddyPress theme’s activity-loop.php file to display the corresponding group’s static home page. But, to do this, I would need to be able to distinguish between each group – I assume by group id. How do I retrieve the group id to a variable? Is it as simple as created a global bp and then using $bp->group->id?
You must be logged in to reply to this topic.