Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Getting text key from checkboxes

$
0
0

Hi,
I've got a checkbox that I need to show using abbreviations

For example, the checkboxes are
[]One [] Two [] Three [] Four

and in a certain situation, I need to show what's been checked as abbreviations, for example
1, 3

When I insert into the view, using "Display all values with separator", I can get
One, Three

or using "Enter values for 'selected' and 'not selected' states", I can get
13 (no comma)

In PHP, using "get_post_meta", I can
[wpcf-fields-checkboxes-option-98d2a454b564d4bdc5f32e73e5623b09-1]

How can I get the actual text values in PHP?


Viewing all articles
Browse latest Browse all 20145

Trending Articles