Support

Account

Home Forums Add-ons Flexible Content Field How to extract the value from a select field type, not the label?

Helping

How to extract the value from a select field type, not the label?

  • I’m trying using the_sub_field and $value = get_sub_field(‘choice’); and both display “Choice 1”, I want to get “choice_1” instead.

    This is what I have in choices:

    choice_1 : Choice 1
    choice_2 : Choice 2

    Regards

  • Nevermind, it seems to work now.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to extract the value from a select field type, not the label?’ is closed to new replies.