Sauter la navigation

[Résolu] Custom search in user view

This support ticket is created Il y a 6 années. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Nigel Il y a 6 années.

Assisté par: Nigel.

Auteur
Publications
#1163081

I have created a custom date field which is auto populated by the registration date of the user. I want this custom date field to be used in a custom search to filter only users registered on a specific date and to display this filtered list in a view.

My issue is How to create a custom search from (or in) a USER VIEW.

#1163550

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Views doesn't support custom searches for users.

A workaround is to mimic the users with posts, and provide searches based upon those posts (https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/).

If the "specific date" is a fixed date (i.e. is not being entered in a front-end search form) you can use Query Filters with a user View, so it is possible to create a View to display users who registered since 1 January 2018, for example.