Skip Navigation

[Résolu] Hide field label from when using show_name = "true" attribute in [types]

This support ticket is created Il y a 7 années et 1 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Marqué : ,

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

Dernière mise à jour par marcB-6 Il y a 7 années et 1 mois.

Assisté par: Luo Yang.

Auteur
Publications
#577550

I would like to display option name from dropdown filed.I have used

[types usermeta='committee-role' show_name="true"][/types]

in my view.

But, it is displaying the option name with field label like this "Committee role : Vice chair". I would like to display just option name not the field label..So, something like this "Vice chair".

Thanks

#577555

Dear Marc,

I assume the custom field "committee-role" is a custom select field created with Types plugin, you can modify the attribute "show_name" value to "false", and test again, for example:

[types usermeta='committee-role' show_name="false"][/types]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#select
show_name:
'false'(default) | 'true'
show field name before value e.g. My field name: my-field-value

#577561

Thanks