@rianhall
Active 8 years, 2 months ago
-
meg@info replied to the topic Excluding Roles from the Member's Directory. in the forum How-to & Troubleshooting 10 years, 10 months ago
Hi @rianhall,
add this code to functions.php :
https://gist.github.com/dzmounir/8285459
No need to edit any template files. Just change
$excluded_roles = array( 'administrator', 'subscriber' );
by puting the role ids to hide.