Plugin Author
WPKube
(@wpkube)
Hi @petners
I’m not 100% sure I understood.
I understood that the user with the ID of 15 has 2 roles, “wpamelia-provider” and “author”.
Can you let me know:
- Does that user show up when the “roles” is set to “wpamelia-provider”
- Do you want that user to show up when the “roles” is set to “wpamelia-provider”
- Does that user show up when the “roles” is set to “wpamelia-provider,author” which means users that have either of those roles will show up
- Do you want that user to show up when the “roles” is set to “wpamelia-provider,author”
hi @wpkube , thanks for responding to my questions.
i’m sorry if i’m not clear enough.
to answer your questions:
1. no. if the user has 2 roles assigned to him (“Author” and “wpamelia-provider”), the user does not show up when i set roles=”wpamelia-provider”, so, i should remove the “Author” user role to make this user show in the list with roles=”wpamelia-provider”.
the point is the user could not appear if they have double role in them.
2. Yes, i want all users with User Role “wpamelia-provider” show up whenever i set roles=”wpamelia-provider” regardless their other roles assigned to them.
3. no, the user does not appear either. all users that have author roles also does not appear when i set roles=”wpamelia-provider,author”
4. no, i just want to display roles=wpamelia-provider only
i hope this helps you to figure out the problems, thankyou!
Plugin Author
WPKube
(@wpkube)
Hi @petners
Which plugin do you use for the multiple roles functionality? By default WordPress does not have the option to set multiple roles per user.
Is it User Role Editor, that’s the one I just tried on my installation.
To one of the users I applied both “author” and “administrator” roles.
That user showed up in all these examples:
[authors_list roles="author"]
[authors_list roles="author,administrator"]
[authors_list roles="administrator"]
And if I understood correctly, that’s the behavior you want but it’s not working that way for you, correct?