Home Forums Front-end Issues Display multiple select values


Display multiple select values

  • Hi,
    I need to output values form select multiples values.

    I’ve follow the documentation from :

    I got an error : “Warning: Illegal offset type in…” form this line:
    $label = $field[‘choices’][ $value ];

    What I have to fill in ‘choices’ ?


  • Hi Florian,

    I think you will not find a solution by putting something else in ‘choices’ and I assume it’s not working because the exemple you followed is not for multiple select field. So you probably try to put an array somewhere a string is required.

    Use print_r to display your get_field result and find how to use it.

    If you don’t find the solution let’s us see your code because is not easy to find what’s exactly goes wrong with no code lines.

    Hope it’s help.

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

The topic ‘Display multiple select values’ is closed to new replies.