The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple User Listing
[resolved] Multiple roles selection (6 posts)

  1. jeroen
    Posted 3 years ago #

    Hello Helga

    thanks for this great plugin, works like a charme :)

    i have a question , how can i select more "roles" in this shortcut ?

    [userlist role="author" number="5"]

    something like :

    [userlist role="author","admin" number="5"]

    but this doesn't work

    hope you can give me a clue

    thank you


  2. helgatheviking
    Plugin Author

    Posted 3 years ago #

    Sorry, but since that isn't supported by WP_User_Query it isn't supported by my plugin. Would be a nice feature though I agree.

  3. jeroen
    Posted 3 years ago #

    I have solved the problem with another plugin called User Role Editor

    now i register 2 different roles to 1 user and it works like a charme

  4. helgatheviking
    Plugin Author

    Posted 3 years ago #

    Nice. Thanks for the sharing the work-around.

  5. Sam Rohn
    Posted 3 years ago #

    it should be possible to list users from multiple roles with WP_User_Query & get_users as explained here -



  6. helgatheviking
    Plugin Author

    Posted 3 years ago #

    Everything is possible given enough time, but I can't afford to spend much time adding new features at the moment. I didn't really like the multiple query solution (and would be afraid of trying to deal with pagination on such a query) that was the accepted answer, and you'll note that I commented that I didn't have any success with the complex meta query solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple User Listing
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.