Remove website field from wordpress comment form

As website URL field is not mandatory but many times spammer use it to get backlinks to their website that results tons of garbage and spam comment. To get rid of spammer simply remove website field from comment form. To remove website field edit functions.php file in your WordPress theme folder and add following code

function remove_comment_website_url($fields) { 
    return $fields;

Add extra contact method in wordpress user profiles

WordPress has only two contact fields in users profile that is email and website. That may not be sufficient as there are many social networking sites (like Google+,facebook, twitter etc) are available to connect with users. We can add more contact methods in contact info section. To add more fields edit functions.php file in your WordPress theme folder and add below code.

function new_contactmethods( $contactmethods ) {
    $contactmethods['twitter'] = 'Twitter'; // Add Twitter
    $contactmethods['facebook'] = 'Facebook'; // Add Facebook
    $contactmethods['google'] = 'Google+'; // Add Google+
    return $contactmethods;

Above code will add Twitter, Facebook and Google+ fields in contact info section

Trick to get indexed by Google fast

Are you a webmaster and want to index your website by Google in few hours? Then you are at right place.

Most of the new webmasters have one question: “Why does Google not find my website”. In most of the cases it is due to the fact that your website is not yet indexed by the Google. The Google bot will take some time to find this new website and then only it can index it.  However, you don’t have to wait until Google finds it… You can tell Google about your new website if Google can’t find it. Continue reading

Get rid of mysql sleep process

Some times there are many many sleep processes in your SQL connection. These sleep connections consume a lot of resources (RAM, cache and processor). This can cause your MySQL server slow down. If your MySQL server is not responding then the query to the database will take a lot of time. In such situations, your website will open very slowly. Continue reading