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

WordPress Setting page can not be saved by html radio

I believe the problem could be with your add_menu_page() function. You have your 3rd parameter set as ‘8’ and that is a deprecated use of that particular parameter (capability). See: http://codex.wordpress.org/Function_Reference/add_menu_page and http://codex.wordpress.org/User_Levels You should try changing that to the correct string representation.

Multisite and plugins options

Back when Multisite first appeared, there were multiple blogs in a single site. The *_site_option functions are from that older Multisite era. Now in current Multisite you have multiple sites in a network, so the meaning of “site” has made a confusing change. In the context of these functions, think of them as network functions … Read more

Echo option page form field value

I think your issue is in this section here: public function bguru_options_page() { // Set class property $this->options = get_option( ‘bguru_logo’ ); $this->options = get_option( ‘bguru_vimeo’ ); $this->options = get_option( ‘bguru_slide_one_image’ ); $this->options = get_option( ‘bguru_slide_one_heading’ ); $this->options = get_option( ‘bguru_slide_one_text’ ); $this->options = get_option( ‘bguru_slogan_heading’ ); $this->options = get_option( ‘bguru_slogan_description’ ); What I would … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)