Skip Navigation

[Resuelto] Hide field label from when using show_name = "true" attribute in [types]

This support ticket is created hace 7 años, 1 mes. 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 – 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)

Etiquetado: ,

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por marcB-6 hace 7 años, 1 mes.

Asistido por: Luo Yang.

Autor
Mensajes
#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