Skip Navigation

[Résolu] Add Filter and Custom Search in « Users » View

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Can I add a Custom Search to a user View?
If so, how?

Solution:
There is no such feature available to add custom search for users.

You can only build custom search for CPT view or CPT archive view. You can not build custom search for users view.

Relevant Documentation:

0% of people find this useful.

This support ticket is created Il y a 7 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par marcB-6 Il y a 7 années.

Assisté par: Minesh.

Auteur
Publications
#593880
Screenshot_1.png
Screenshot_2.png

I have created a view to display users with role "Subscribers" and in view I have added a query filter for "locationname".
So, view is displaying users working at particular location.

Now, I would like to add search box which will search from :
1) Firstname
2) Lastname
3) Job Title
4) Work area

And, a filter for below fields

1) Work area
2) Business days (Sunday,Monday etc)

When I am going to add filter and search I see the message : Only Views with messages can have custom searches.

So, How can I add filter and search to an user view as I mentioned above.

Thanks

#593910

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - There is no such feature available to build custom search for users.

You can only build custom search for CPT view or CPT archive view. You can not build custom search for users view. So the message you got "Only Views listing posts can have custom search inputs." is expected one.

#593913

Is there any other way to do?

#593919

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - there is no such feature or alternate solution until you hook your all usermeta to posts and that will require lot of effort and custom programming that is beyond the scope of our support policy.

If you need custom programming for your project, please feel free to contact our certified partners.
=> https://toolset.com/contractors/

#593968

Ok Thanks