Custom user listing with numbered pagination

If you are making a custom page in WordPress where you want to show the user listing with numbered pagination then you are at right place.

In this tutorial, I will share code using which you can make Custom user listing with numbered pagination

There are two methods to make this functionality.

  1. Using custom WordPress template
  2. Using shortcode

As mentioned above, there are two different methods using which you can make a custom user listing.

Using custom WordPress template

For this method, follow the below steps:

Step 1: Make A WordPress template

Make a new file inside your active WordPress theme with any name. Let say we made the file with name “userListing.php” inside the theme. Now add the following code inside the newly created file

Step 2: Make a page in WordPress admin

Now make a page in WordPress admin and select the template name from “page attributes” from the right panel. Check the below screenshot for reference.

Step 3: Add the following code to “userListing.php” file.

Using shortcode

With this method, you don’t need to make a custom php file inside your theme. Start from the step 2 i.e add a new WordPress page from admin and paste the following code inside the description section.

To make this shortcode, paste the following code in functions.php of your active WordPress theme.

All set. Now your page is ready o show Custom user listing with numbered pagination

Want to check the live demo on our website?

Live Demo

If you have any query, please use our questions bank section