Skip Navigation

[Resolved] User Directory view, with search fields, including User Meta

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Shane 4 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#2213817

We want to build a staff directory.

We have just a few fields to display and search by: Name, Email -- plus three meta fields: Title, Department, and Location.

We want a simple view of users with search filters.

When I go to add a view, I can only choose Posts, Pages, Media, and Views, but not Users ...

How do I access users?

#2213847

Tis post is why I purchased Toolset: https://toolset.com/2013/11/views-1-4-with-users-support/

Is this no longer supported?

#2214079

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stephen,

Currently it isn't possible to create custom searches for wordpress users however if your users have a profile on a Profile Custom Post type then a search can be created from this.

Please follow the instructions in the link below for an example of how you can achieve this.
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/

Thanks,
Shane

#2214221

Thanks for your help Shane.

I actually am looking forward to using Toolset, as I am also a Drupal developer, and one of my biggest disappointments about WordPress is the lack of anything competitive with Drupal Views. Your product comes pretty close.

Here's my challenge with the tutorial -- I am not allowing users to register. They are employees of a company, and their logins are managed by Single Sign on through Google Workspace. I am pulling in three fields only, but they have to come through Google Workspace and cannot be edited by the user.

I know I can lock down editing permissions, but I don't think posts can be auto-created on user account creation through SSO, and then deleted/put in draft, when an employee is terminated.

Do you know of any way to autocreate content on user account creation, and them populate their custom fields with data from the user account that is pushed through?

#2215919

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stephen,

Do you know of any way to autocreate content on user account creation, and them populate their custom fields with data from the user account that is pushed through?

Unfortunately i'm not aware of any means of doing this. The only thing that comes to mind is by using some form of custom code to gather the data from the google workspace API.

Our Views plugin can only filter through data that is stored on the site itself.

Thanks,
Shane