Skip Navigation

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

This support ticket is created 4 years, 5 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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by israelP 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1380251

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

#1380325

Shane
Supporter

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.