• Resolved sslv

    (@sslv)


    Hi,

    I’m using the UsersWP plugin to manage user profiles. Is it possible to create two different lists of users based on their user role?

    For example on the first list i want to show a list of all the Authors and on the second lists I want to list all the subscribers. But I want to keep these in separate pages.

    Thanks for your time.

    • This topic was modified 3 years, 3 months ago by sslv.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Paolo

    (@paoltaia)

    Hi,

    yes, that is possible.

    The UWP > Users Block (or shortcode) has the option to select which role to show.

    Let me know if you have further questions.

    Thanks,

    Thread Starter sslv

    (@sslv)

    Hi Paolo,

    Thanks for your quick response.

    Can you please be more specific, how do I change that setting.

    And if so, how do I create another list to display the rest of the users

    Plugin Contributor Paolo

    (@paoltaia)

    Step 1: Create a page and add the block UWP > Users and in the Block settings select the role you want to show on that page.

    Step 2: Create the second page and repeat step 1 assigning another role.

    https://paste.pics/af6af1c8a6f8c09e3eb4352d3510df3c

    Let me know if you need further help.

    Thread Starter sslv

    (@sslv)

    I tried your suggestion but there is no option in the Blocks Settings as shown in your screenshot.
    https://paste.pics/caebe9cb4190ae80a574c32372132385

    Plugin Contributor Paolo

    (@paoltaia)

    That’s because you are not following instructions correctly.

    You are using the shortcode block instead of using directly the “UWP > Users” blocks as in my screenshot.

    If you are using the Shortcode you need to add the roles as parameters.

    Example: [uwp_users roles=”subscriber”]

    Thread Starter sslv

    (@sslv)

    Thanks works great now!

    ( sorry for being slow ?? )

    Plugin Contributor Paolo

    (@paoltaia)

    You are welcome, nothing to worry about! ??

    Thread Starter sslv

    (@sslv)

    Hi Paolo,

    Based on the above issue, I have identified few thing that need improvement.

    • When using default WP editor:
    • It does not show the option to choose which roles have access to that specific list (but works great with WP default editor). See screenshot of how it’s showed in Elementor:
      https://paste.pics/ac7d7953f4a7d65a01cc958dabcdc4b1

    • When using Elementor:
    • It does not save the configuration options. No matter if I click apply or Update, it doesn’t save it and will list all users instead! See screenshot above

    • Search Engine Disapears
    • Also when using UsersWP > Users the search engine dissapears:
      https://paste.pics/4d9af8abf261d4eafc45d9b7ba887e23

    • This reply was modified 3 years, 3 months ago by sslv.

    Hi,

    You can use the ctrl key to select multiple roles as it is a multi-select dropdown but maybe not showing like the select2 dropdown of Bootstrap which we will check from our side. The square you mentioned is not a part of our plugin as it is coming from Elementor or some other plugin.

    Can you see the console if you find any JS error or not?

    Can you show by an arrow or marking in the screenshot which search engine disappears?

    Regards,
    Patrik

    Thread Starter sslv

    (@sslv)

    Hi Patrik,

    Thanks for your reply.

    Regarding the search engine, here is the default Users page as shown in the following screenshot. As you can see the search engine appears and is fully functional. (I would create another ticket regarding how to create another custom search engine to search by country).
    https://paste.pics/f8d009237295c1169c92d80b29629c15

    The following screenshot shows the list of users only with user-role = barber
    As you can see the search engine disappears.
    https://paste.pics/8a2880652cef2f8ae4373e6d107ea7be

    Same for the Barber Shops Users List. (same error in front-end console.)
    To create my custom users page and assign the user-roles accordingly I have used the UsersWP > Users Block as shown in the following screenshot:
    https://paste.pics/b6ee074a450fe5027222477daafe5013

    As you can see when I’m in edit mode the Search engine looks to be displayed. But not on front end where it dissapears. I did the same for the Barber page, the only difference is that I have selected a different user-role to be displayed. As for the UsersALL page, it is the default Users page that the UsersWP provides.

    Hi,

    If you can create a support request on our site https://userswp.io/support/ then we can take a look at your site and help you out. Please mention this ticket URL as a reference.

    Regards,
    Patrik

    Thread Starter sslv

    (@sslv)

    Will do later today.

    Thanks for your time Patrik.

    Regards,
    Loizos

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to create two User List Pages? (UsersWP plugin)’ is closed to new replies.