FaceBook – Add custom thumbnail and title when someone likes your Website

Facebook Link button is now floating on almost every website.

By default, when a user clicks on Facebook “Like” button on any of your webpage, it will post the image thumbnail, title and description from the same page.

Just in case you want to provide a custom image Thumbnail and/or custom Title, you can do it quickly by adding the following meta tags in your page header.



Click on Facebook like button below to see how it works 🙂

Posted in Facebook, Wordpress | Leave a comment

Godaddy Dedicated/ VDS Hosting – Login as Root

Quite sometime you may want to login as root to administer your Dedicated or Virtual Dedicated server. Godaddy doesn’t allow you to directly login as “root”.

You can however, easily turn on “root” user on your Godaddy server

1. Login into your Dedicated/VDS server using putty or similar software using your account username and password

2. Type the following command (without qutoes) and hit enter key “command su -”

3. You will notice that you are now logged in as root user!

Posted in Linux | Leave a comment

Linux : Copy files directly between two remote servers

Imagine you want to switch to a new dedicated server and your current website size is say 5 GB. It becomes really cumbersome to first download the entire website to your local PC and then upload it to your new server.

Thanks to Linux SCP command that you can directly copy files/folders between two servers (with SSH access, ofcourse)

This is the Linux scp command syntax to retrieve file or directory FROM a remote computer:

scp -r login name@ip-address :/path/filename .

the last period (.) tell the shell to copy the files to the current directory

This is the Linux scp command syntax to send file or directory TO a remote computer:

scp -r /path/filename login_name@ip-address : .

Posted in Linux | Leave a comment

Show Post Comments on the Homepage Twenty Ten

The Twenty Ten theme uses loop function to show posts on the homepage or category pages.

The novice users might find it difficult to work with loop.php

If you want to show the list of comments & comment form for each of the blog posts on the homepage of the blog, just add the following line of code

global $withcomments; $withcomments = 1;

just before

get_template_part( 'loop', 'index' );
Posted in General | Leave a comment

WordPress – Using Shortcodes in Template files

echo do_shortcode('[shortcode]');
Posted in General | Leave a comment