23 pointsStarting to get into this DEV thingI'm new here
gregw100
Member
—
28th December 2011 (4 months ago)
I want to know if there is a way to add additional accepted arguments to the type parameter in the members loop. Instead of using active, newest, popular, online, alphabetical, or random, I'd like to choose user roles.
I want to know if there is a way to add additional accepted arguments to the type parameter in the members loop. Instead of using active, newest, popular, online, alphabetical, or random, I'd like to choose user roles.
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
25th January 2012 (4 months ago)
#
Hiya,
Just checking if it was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?
If so, no need to reply, that's great news.
If not, could you let us know by re-opening this topic, and we'll get onto it and helping you out asap!
Otherwise, happy days, glad you got it sorted :)
Responses (3)
WPMU DEV Fanatic — 29th December 2011 (4 months ago) #
Hi gregw100,
I believe you'd have to do that somewhat like shown in the following:
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/excluding-roles-from-the-member-loop/
And I believe the key portion of the snippet would be:
I think you can just alter the while portion of the loop to include that conditional or similar.
Perhaps that'll do it for you?
-David
Member — 29th December 2011 (4 months ago) #
That only excludes the subscriber role from my members list. I'm looking to add the user role argument to the type parameter.
Sales & Support Lead — 25th January 2012 (4 months ago) #
Hiya,
Just checking if it was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?
If so, no need to reply, that's great news.
If not, could you let us know by re-opening this topic, and we'll get onto it and helping you out asap!
Otherwise, happy days, glad you got it sorted :)
Thanks!
Become a member