Posts

Showing posts from May, 2012

Wordpress plugin development

Hi friends this is my very first tutorial in wordpress plugin development. In this tutorial we are going to create an login/logout widget as a plugin. step 1: Create a folder in wp-content/plugins/ and name it as whatever u want. But it should represent your plugin name, here i'm going to create an folder ' ktm-wp-login '. Now the folder will be in wp-content/plugins/ktm-wp-login. step 2: Create a file ktm-wp-login.php inside the ktm-wp-login folder and write the following code on it. /* Plugin Name: ktm Wordpress Login Description: With this plugin we can login or logout. Author:Karthi Version:1.0 Author URI:http://techpointt.wordpress.com Plugin URI:http://techpointt.wordpress.com */ step 3: For creating this plugin we need the following functions and hooks: - wp_loginout() - wp_register() - register_widget() and an action ' widgets_init ' Lets start, In order to register our widget we need a function register_widget() <?php add_action('widgets_init',&#

Refresh/Reload Page or Part of the Page Automatically/Periodically - Javascript

Here is the source to know about automatically refreshing particular part of page. Refresh/Reload Page or Part of the Page Automatically/Periodically - Javascript .