• Resolved salberg

    (@salberg)


    Hi there,

    I am creating a form with lots of fields, where some are radio buttons, and I need to display all of the inputs on the frontend.
    Everything but radio buttons seems to be mapping and displaying fine, as they just display “Array”.

    How can I get it to display the actual value that was selected from the radio button group?

    I am not using ACF, but am using the built in meta-field generator of the plugin.

    I do know that there is a similar post in here, but I don’t know where to put the code you provided, as I am building my custom post type template with Divi and its Theme Builder.

    Really enjoyed the plugin until I stumbled upon this issue. Hope you can help! ??

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    I am not using ACF, but am using the built in meta-field generator of the plugin.

    Thanks for clarifying this detail ?? . How are you displaying your fields on the front-end? The values of radio/checkbox are stored as arrays in the post meta-field, so its a question of extracting the value from the array value the meta-field returns, basically value[0] instead of just value

    Thread Starter salberg

    (@salberg)

    So, I don’t know if you’re familiar with the Divi Theme and the Divi Builder, but you basically have the option to build templates for everything with the Divi Builder to avoid coding them yourself. So I did this with my custom post archive template.
    To display the fields I just create a “Text module” where you can then choose to display “dynamic” content. As far as I understand, it basically just allows you to get content by either choosing from among some predefined meta fields such as “title, “author” and such. But you also have the option to type in your own meta field, and that’s what I am doing – typing in the meta field name that I created with the plugin in the backend.

    I can make a video showing you, if that would help?

    Thread Starter salberg

    (@salberg)

    Also I can confirm that select fields display properly on the frontend. ??

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Indeed, I am aware of Divi theme and its builder, but that’s just where the issue is, it expect a single value when in fact it is stored as an array. Your builder likely has the option to filter the value being displayed. You should ask Divi support how to do that.

    Thread Starter salberg

    (@salberg)

    Hi again,

    Yes, I did contact them this morning, and they say that it’s not supported atm. Great. Do you have any suggestions how to go about this?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Build a custom shortcode to programmatically fetch the value and display it properly in your Divi block.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Radio Buttons display “Array”’ is closed to new replies.