hi i want to explain how to create widget in wordpress
follow these step to create widget are in wordpress theme
1-Go in theme folder and register your widget in funtion.php file
2-Go in sidebar file and make a copy rename it like sidebar-homepagesidebar
3-Write your code using widget name which you registered in function.php file
4-Now you can access this side bar calling wordpress function getsidebar(homepagesidebar) on home page or any where.
follow these step to create widget are in wordpress theme
1-Go in theme folder and register your widget in funtion.php file
2-Go in sidebar file and make a copy rename it like sidebar-homepagesidebar
3-Write your code using widget name which you registered in function.php file
4-Now you can access this side bar calling wordpress function getsidebar(homepagesidebar) on home page or any where.