Hi, I run a community and I would like to show content in my sidebar to only a select few individuals. I can’t seem to figure out how to do this. I don’t want to do it by role, I want to do it by username or id or these members are also part of a private group so I could do it that way too. I’m using widget logic to add the widget and so far I tried this
bp_is_my_profile() && bp_group_is_member(’29’)
I thought it was working as both my accounts I use as admin and part of that group can see the content but another member informed me they can not see the content.
Hi, @gearupandplay first I recommend you to always create a “normal” (non-admin) user for testing purposes in your networks, and test both with admin and non-admin users what happens when you tweak the code, otherwise you may have the problem you found or the opposite, which would be even worst, that normal users may get admin permissions.
That said, I would recommend you to test putting those functions individually inside a var_dump() to see what they’re returning. Maybe you have not invoked the $bp global before using it…
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How to Show content in sidebar to only specific members?’ is closed to new replies.