How can I insert a drop down select to choose the "user_name" "user_surname" in a custom search view?
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
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?
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
My issue is resolved now. Thank you!