'', 'slide_1_desc' =>'', 'slide_1_link' => '', 'slide_2_title' => '', 'slide_2_desc' =>'', 'slide_2_link' => '', 'slide_3_title' => '', 'slide_3_desc' =>'', 'slide_3_link' => '', 'slider_interval' => 6000, 'tracking' => '' // <-- no comma after the last option ); // push the defaults to the options database, // if options don't yet exist there. add_option($settings, $defaults, '', 'yes'); // this function registers our settings in the db add_action('admin_init', 'register_theme_settings'); function register_theme_settings() { global $settings; register_setting($settings, $settings, 'validate_options_cb'); } // this function adds the settings page to the menu add_action('admin_menu', 'add_theme_options_menu'); function add_theme_options_menu() { add_menu_page("Options", "Options", 'edit_themes', 'custom-option-main-settings', 'theme_settings_admin', get_template_directory_uri().'/favicon.png'); } function theme_settings_admin() { ?>

Slide 1:

Title:

description:

link:

Slide 2:

Title:

description:

link:

Slide 3:

Title:

description:

link:


If you use a service such as Google Analytics to track analytics on your site, paste the code below (it will be inserted into the footer):


$value){ $options[$key] = $value; } //return all options return $options; } // add CSS and JS if necessary function theme_options_css_js() { ?>