Anyone know a way to have a nav link only appear for group members besides: ‘user_has_access’ => bp_group_is_visible() ? That doesn’t seem to work with WP.
is the group public? as bp_group_is_visible checks that first, if not then checks groups_is_user_member
Thanks! That worked for me on both WPMU and WP. Here’s the full code since it required 2 inputs:
‘user_has_access’ => groups_is_user_member($bp->loggedin_user->id, $bp->groups->current_group->id)
For a complete n00b like me, could you please give a bit more detail on how to implement the code? This is exactly what I’ve been trying to do (make a page only visible in the nav to members), but haven’t been able to find a way to do it until now.
Thank you!!
You’ll need to give a bit more details. Is this a new group page? Is it an existing group page? Does it have sub navs?
It will take understanding a bit of coding, but if you give some details we can try and help.
Hi
It’s a new page with no sub navs. I only want the link to show up in the nav when a member is logged in. It should be invisible when not logged in. I’m using thesis.
Thanks for replying so quickly – I hope you can help me.
When I was googling for a solution, this page showed up – but I’m not using BuddyPress, so I am probably in the wrong place.