Skip Navigation

[Résolu] Add field to user registration form for user_url

This support ticket is created Il y a 5 années et 7 mois. 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 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 5 années et 7 mois.

Assisté par: Minesh.

Auteur
Publications
#1236739

Tell us what you are trying to do? I am creating a user registration form and I want to include a field for the user_url with is already part of the wordpress database.

There's a shortcode for displaying the user_url in the profile but I can't add a field to any user form for editing the user_url field. It doesn't show up in the field controls either.

#1236800

Minesh
Supporter

Les langues: Anglais (English )

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

Hello. Thank you for contacting the Toolset support.

Yes, that's correct. There isn't a built-in option for the "Website" field, but I've a workaround that will help you to achieve what you looking for.

As a workaround, you can add a generic field for the user to input his website URL to your form.

For example:

[cred_generic_field field='user_url' type='url' class='' urlparam='' placeholder='<em><u>lien caché</u></em>;
    {
        "required":1,
        "validate_format":1,
        "default":"",
        "persist":1 
    }
[/cred_generic_field]

Moe info:
=> https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/