in wordpress you can create your widget in a simple manner, the process is so simple
given below the widget plugins name is “widget-test”. you can modified that as your need
<?php
/*
Plugin Name: widget-test
*/
##never forget this function configuration
##never forget add $before_widget,$before_title, $after_title and $after_widget
## example given below
function widget_test($args) {
extract($args);
echo $before_widget.$before_title.”widget-Title”.$after_title;
echo ‘<ul>’.”n”;
echo “text here”;//call any function or print something that will be show in your widget contents
echo ‘</ul>’.”n”;
echo $after_widget;
//}
}
###Widget initialize function
function widget_init() {
register_sidebar_widget(__(‘Widget Title’), ‘widget_test’);
}
add_action(‘plugins_loaded’, ‘widget_init’)
?>







1 responses to “widget create in a miniute”
srayhan777
June 10th, 2010 at 00:35
hi visit my http://downloadallbanglanatok.blogspot.com/