WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jeroen
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/simple-user-listing/

  2. helgatheviking
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Nice. Thanks for the sharing the work-around.

  5. Sam Rohn
    Member
    Posted 11 months ago #

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

    http://wordpress.stackexchange.com/questions/39315/get-multiple-roles-with-get-users

    sam

  6. helgatheviking
    Member
    Plugin Author

    Posted 11 months 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

About this Topic

Tags

No tags yet.