Hi Eliot,
I’m trying to display the names of users with different roles in one loop. For example: I want to display the users with the role admin or author.
A loop for just one role works fine (also with a custom role created with the Members plugin from Justin).
[users role=admin]
[user nickname]
[/users]
But this doesn’t work:
[users role=admin,author]
[user nickname]
[/users]
I get it done with the code below (because the roles of the users I want to display has the capability “upload_files” in common).
[users exclude=5,8]
[is capable=upload_files]
[user nickname]
[/is]
[/users]
But it would be nice if I can select multiple roles in one user loop.
Is it easy for you to make this possible?
Thanks (again, again and again) in advance!
Peter
https://wordpress.org/plugins/custom-content-shortcode/