User loop problem
-
Hello,
I’m using user loop shortcode to display members of specific user role, it works fine but the problem is if there is no user yet in that user role, it displays all the users from all the user roles!
How to prevent this? I want it to display members of specific user role, if the user role is empty then display none.
- The topic ‘User loop problem’ is closed to new replies.