Navigation überspringen

[Gelöst] display custom field value label

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 years, 12 months. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von stephaneB-5 vor 4 years, 12 months.

Assistiert von: Minesh.

Author
Artikel
#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 versteckter Link (free version)

#2070005

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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!