Replies
- Stephanie on May 22, 2024 at 12:12 pm in reply to: [Resolved] How to hide users by user role from the Buddypress Directory #52576
Hi Brajesh,
Thank you so much for such a speedy reply.
I appreciate that you have updated the code. I only have 5 roles I want to exclude and 1 role I want to include, so I think this piece of code will work for me, but I tried it and it didn’t work for me, it had this problem:
When I tried the “Limiting to certain roles only.”, I added the one role I wanted to include in my directory and when I opened the directory, the page stays stuck on the “Loading the members of your community. Please wait.” message, and shows there are 6 members (when there should be 2 members, both with the same role I wanted to include). The same problem occured when I manually entered the 5 roles I want to exclude. I got the user roles from my wordpress dashboard.
Also, I noted that you mentioned the other BuddyDev article with the code for excluding certain users, I used the code from the github page. Not sure if I was supposed to use the BuddyDev one?
Thank you
Stephanie- This reply was modified 8 months ago by Stephanie. Reason: Add detail