Saltar navegación

[Resuelto] display custom field value label

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
display custom field value label for the checkboxes field

Solution:
If you are using Toolset blocks:
- you should try to display checkboxes field using single field block
If you are using classic views:
- you can use the Types shortcode:

[types field='student-review-grades' separator=', '][/types]

Relevant Documentation:

This support ticket is created 4 years, 12 months 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
- 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por stephaneB-5 4 years, 12 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2069873

Hello,

I am working on a website translation and I would like to know if it is possible to display the checkbox labels rather than their value?
For example :
I'd like to know if it's possible to display the labels of the checkboxes rather than their values... basically: we have to display the type of land recommended and there are several checkboxes, I change the value of each label but not the stored value so that I don't have to modify the products. Except that on the site, the value displayed is the unmodified one. Is it possible to display the label?

Thank you in advance.

Translated with enlace oculto (free version)

#2070005

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you have a checkboxes custom field with several options added using Types.

If this is correct, yes, you can display the checkbox label.

If you are using blocks, you should try to display checkboxes field using single field block and if you are using classic views, then you can use the Types shortcode: [types field='student-review-grades' separator=', '][/types]
where: please adjust the field slug.

#2070345

My issue is resolved now. Thank you!