Skip Navigation

[Résolu] User_name and User_surname Drop down select in view custom search

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

Marqué : 

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

Dernière mise à jour par israelP Il y a 5 années.

Assisté par: Shane.

Auteur
Publications
#1380251

How can I insert a drop down select to choose the "user_name" "user_surname" in a custom search view?

#1380325

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Israel,

Thank you for getting in touch.

I'm assuming that you're filtering for posts here. Unfortunately unless these values are in custom fields then you won't be able to filter for them.

Thanks,
Shane

#1380331

Thank you for your quick reply!

Then I should add a custom field in the post type for the name of the user to be written on it, but I would like it to be assigned automatically from the logged in user_name and user_surname. How can I do that, please?

#1380347

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Israel,

Sure this will be best.

You should be able to get the values with this shortcode.
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-154505

If the posts are being created on the frontend through our Forms plugin then you can provide the values to the first and last name field like this.

[wpv-user field='user_firstname']

[wpv-user field='user_lastname']

Please let me know if this helps.
Thanks,
Shane

#1380639

My issue is resolved now. Thank you!