• hi @wpkube. i’m sorry that i have some problems to ask for.
    Why user that have double user role does not appear in the author list?

    This is the code :
    [authors_list roles=”wpamelia-provider” show_bio=”no” style=”2″ show_count=”no” minimum_posts_count=”0″ show_link=”no” skip_empty=”no” avatar_size=500 pagination=”yes” only_authors=”no” exclude=3,16,19,21]

    the user ID 15 (he has 2 roles, author and wpamelia-provider).

    this user cannot appear in list. meanwhile when I remove author user role, this user (user id=15) appeared in list.

    can you help me to show whoever users that have author role eventho they have other user roles assigned to them?

    • This topic was modified 4 years, 3 months ago by petners.
    • This topic was modified 4 years, 3 months ago by petners.
Viewing 3 replies - 1 through 3 (of 3 total)
  • 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:

    1. Does that user show up when the “roles” is set to “wpamelia-provider”
    2. Do you want that user to show up when the “roles” is set to “wpamelia-provider”
    3. 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
    4. Do you want that user to show up when the “roles” is set to “wpamelia-provider,author”
    Thread Starter petners

    (@petners)

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Double Role User does not appear’ is closed to new replies.