Custom random quote widget breaks when used in multiple sidebars

No parent necessary: the difference between a not-working widget and a working widget was this: $text1 = apply_filters( ‘widget_text1’, $instance[‘text1’], $instance ); vs: $text1 = apply_filters( ‘widget_text1’, empty($instance[‘text1’]) ? ” : $instance[‘text1’], $instance, $this->id_base); I realized putting multiple Random Text widgets on the same page, their titles worked, but their text content did not. So … Read more

Admin Theme customization

You are missing the hyphen in your admin_print_styles hook. function kd_plugin_admin_menu() { /* Register our plugin page */ $page = add_submenu_page( ‘edit.php’, __( ‘KD Plugin’, ‘kdPlugin’ ), __( ‘KD Plugin’, ‘kdPlugin’ ), ‘administrator’, __FILE__, ‘kd_plugin_manage_menu’ ); /* Using registered $page handle to hook stylesheet loading */ add_action( ‘admin_print_styles-‘ . $page, ‘kd_plugin_admin_styles’ ); }

Show an image in my header.php

WordPress contains built-in support to select header images for a theme. You only have to indicate that your theme supports this, by calling add_custom_image_header(). See the Twenty Ten initialization for details. In your theme’s header.php you then call header_image() to get the current header image.