Changing name of sidebar widget

Use the ‘Name’ parameter in your register_sidebar call. E.g., see the following code in the default Twenty Ten theme, line 351. function twentyten_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar( array( ‘name’ => __( ‘Primary Widget Area’, ‘twentyten’ ), ‘id’ => ‘primary-widget-area’, ‘description’ => __( ‘The primary widget area’, ‘twentyten’ … Read more

How to override the wordpress default widget markup

http://codex.wordpress.org/Function_Reference/unregister_widget add something like this to functions.php: if (!function_exists(‘my_unregister_default_wp_widgets’)) { function my_unregister_default_wp_widgets() { unregister_widget(‘WP_Widget_Calendar’); unregister_widget(‘WP_Widget_Recent_Posts’); } add_action(‘widgets_init’, ‘my_unregister_default_wp_widgets’, 1); } Also… you can look at the http://codex.wordpress.org/Widgets_API examples to see how you can extend the WP_Widget class to create custom widgets that you want.

How do i manually place a widget code

Just register another widget area. Don’t take the name sidebar literally, you can use the fields anywhere on your page. In your theme’s functions.php: add_action( ‘after_setup_theme’, ‘register_multiple_widget_areas’ ); function register_multiple_widget_areas() { register_sidebar( array( ‘name’ => ‘Sidebar’, ‘id’ => ‘sidebar’, ‘description’ => ‘describe the function of the box.’ ) ); register_sidebar( array( ‘name’ => ‘Header’, ‘id’ … Read more

Widget Options Not saving

Your problem is that you’re calling the wrong method for generating the name attribute. It should be $this->get_field_name(‘via_cat’) Also, you can use wp_dropdown_categories(), no need to reinvent the wheel: wp_dropdown_categories(array( ‘name’ => $this->get_field_name(‘via_cat’), ‘selected’ => (int)$instance[‘via_cat’], ));