Category: Wordpress

Add custom fields in user profile

Place the code below into your functions.php file to add custom user profile fields. Edit or add lines as you see fit.Remember not to remove the line: return $contactmethods; otherwise this won’t work. To display custom fields you can use one of the two methods listed below.Accessing fields Option 1:the_author_meta(‘facebook’, $current_author->ID);Option 2: In this way […]

Read More…

Using wordpress admin ajax

Using wordpress admin ajax is very simple. You need to follow this steps accordingly. Create a function to display your form in front end. You can use short code to include your form in post/page. Make sure you must have action filed in form, with the help of action value you can access wp_ajax hook. […]

Read More…

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 ‘. […]

Read More…