• Resolved David Gewirtz

    (@dgewirtz)


    I’m using https://github.com/satwinderrathore/CMB2-Radio-Image/ in a metabox that has a title field, a select, and the radio_image type. When I display it, the radio_image insists on displaying before the select. Any way I can fix this?

    
    '    $section_options->add_field(array(
            'name'        => 'Form Styles',
            'id'          => 'seamless_donations_admin_forms_section_styles',
            'type'        => 'title',
            'after_field' => $section_desc,
        ));
    
        $section_options->add_field(array(
            'name'              => 'Style',
            'id'                => 'dgx_donate_form_style',
            'type'              => 'select',
            'show_option_none'  => 'Please choose a form style',
            'select_all_button' => true,
            'options'           => $style_options,
        ));
    
        $section_options->add_field(array(
            'name'         => __('Forms for Your Site', 'seamless-donations'),
            'id'           => 'dgx_donate_picradio',
            'type'         => 'radio_image',
            'options'      => array(
                'pets'     => __('Pets Style', 'seamless-donations'),
                'outdoors' => __('Outdoors Style', 'seamless-donations'),
                'food'  => __('Food Style', 'seamless-donations'),
                'lunch' => __('Lunch Style', 'seamless-donations'),
                'election' => __('Election Style', 'seamless-donations'),
            ),
            'images_path'  => $plugin_directory,
            'images'       => array(
                'pets'       => 'images/bdf/pets.png',
                'outdoors'   => 'images/bdf/outdoors.png',
                'food'       => 'images/bdf/food.png',
                'lunch'      => 'images/bdf/lunch.png',
                'election'   => 'images/bdf/election.png',
            ),
        ));

    `

    • This topic was modified 4 years, 5 months ago by Yui.
    • This topic was modified 4 years, 5 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Radio_image insists on coming first’ is closed to new replies.