Additional custom header image

See TwentyEleven to get the idea: it uses register_default_headers() to add new header images. In your plugin or theme just add: add_action( ‘after_setup_theme’, ‘wpse_42529_add_header_images’ ); function wpse_42529_add_header_images() { register_default_headers( array( ‘a_short_name’ => array( ‘url’ => ‘%s/images/headers/a_short_name.jpg’, ‘thumbnail_url’ => ‘%s/images/headers/a_short_name-thumbnail.jpg’, ‘description’ => __( ‘Wheel’, ‘twentyeleven’ ) ), ‘another_image’ => array( ‘url’ => ‘%s/images/headers/another_image.jpg’, ‘thumbnail_url’ => ‘%s/images/headers/another_image-thumbnail.jpg’, … Read more

Getting error to display radio button value in General Settings page

Apart from the isset issue, pointed by Rarst, there’s an error in the sanitization function. esc_attr seems not to work with radio buttons, using esc_sql does the job. You’re also missing the checked state for the buttons: add_filter( ‘admin_init’, ‘myservice_register_function’ ); function myservice_register_function() { register_setting( ‘general’, ‘my_service’, ‘esc_sql’ ); add_settings_field( ‘my_service’, ‘<label for=”service_need”>’.__(‘Do You need … Read more

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