/ Published in: PHP
                    
                                        
put "register_sidebar_widget(..)" into "function widgets_init()"
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function widget_myuniquewidget($args) {
extract($args);
?>
<?php echo $before_widget; ?>
<?php echo $before_title
. 'My Unique Widget'
. $after_title; ?>
Hello, World!
<?php echo $after_widget; ?>
<?php
}
register_sidebar_widget( 'My Unique Widget', 'widget_myuniquewidget' );
URL: http://automattic.com/code/widgets/plugins/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                