Skip Navigation

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

This support ticket is created 7 years, 1 month 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 – 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)

This topic contains 2 replies, has 2 voices.

Last updated by marcB-6 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#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