how to register / add multiple options into one field in wordpress?
Just set the name attribute in your checkbox tag in the format like: favourite_colors[]. The following code is derived from this thread. add_settings_field( ‘favourite-colors’, ‘Select your favourite colour’, ‘favourite_colors_checkbox_callback’, ‘my-settings’ ); function favourite_colors_checkbox_callback() { $options = get_option( ‘favourite_colors’ ); $html=”<input type=”checkbox” id=”red” name=”favourite_colors[red]” value=”1″” . checked( 1, $options[‘red’], false ) . ‘/>’; $html .= ‘<label … Read more