Skip Navigation

[Resuelto] User_name and User_surname Drop down select in view custom search

This support ticket is created hace 5 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: 

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por israelP hace 5 años.

Asistido por: Shane.

Autor
Mensajes
#1380251

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

#1380325

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: 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

Idiomas: Inglés (English )

Zona horaria: 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!