How to display all users in a view except the current login user?

I try to write some php code in contextual filter, but that not work. I think there is an easy way but I don't know it.


I was able to make a view that displayed all the users while excluding the current user. Here is a screenshot of the settings I used:

enter image description here

Note that the important filter here is the "User: Current (No)". That is the one you'll need to have.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.