Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Excluding Roles from the member loop!

@cwulff

Participant

If you want to include just one role change

if ( $user->roles[0] != ‘subscriber’ ) :

to

if ( $user->roles[0] == ‘subscriber’ ) :

or

if ( $user->roles[0] == ‘moderator’ ) :

Skip to toolbar