Do you have many users on your WordPress dashboard? And want to show a list of registered users? Here, in this guide, you will get to know, how you can easily show a list of registered users in WordPress.

How to Show list of registered users in WordPress

The following PHP code allows us to list the display name of all the users that exist in the database:


Remember that from the profile of each of them, you can choose what the name to be displayed will be:

How to Show list of registered users in WordPress

We can choose to show other parameters such as:

//Nombre a mostrar. Ej: David Example
$usuario->display_name

//Login del usuario. Ej: david
$usuario->user_login

//Contraseña encriptada (hash). Ej: $P$BK1deNU7lV/rgwp2oncgESRHRYLedRF.
$usuario->user_pass

//Nickname. Ej: David
$usuario->user_nicename	

//Email. Ej: [email protected]
$usuario->user_email

//Url de su web. Ej: www.loopeando.com
$usuario->user_url

//Fecha de registro. Ej: 2017-03-21 14:11:32
$usuario->user_registered

So if we want to list the emails of all registered users:


But we can also filter the results, sort them or show only those that have a specific role. Example to show only subscribers and sort them by the nickname:


Being the orderby = any of the parameters listed above. For example, if we want to sort by registration date:


Being the default roles by which you can filter:

administrator
editor
author
contributor
subscriber

that's it.
Previous articleWooCommerce: How to Hide product categories in your store
Next article10 Best Photo Editing Applications for Android 2020 | Make a Photo Now!