Home Forums Front-end Issues Display multiple select values


Display multiple select values

    • florianc

    • September 24, 2019 at 5:18 pm

    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’ ?


    • feyfey

    • September 27, 2019 at 7:05 am

    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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.