Author Archives: Bhupendra

WordPress Pagination Not Working: Solution

If you use query_post function on a theme’s homepage, you might land up messing up with the pagination function of WordPress. Here is the quick fix to wordpress pagination (Next Previous Posts) function: 1. Add up the following line of … Continue reading

Posted in Wordpress, Wordpress Hacks | Leave a comment

Creating a Custom Post Type in WordPress

Creating a custom post types in WordPress is very simple. All you need to do is register the custom post type. Copy the function below to your theme’s function.php file The function below adds a custom post type “Ideas” with … Continue reading

Posted in General, Wordpress, Wordpress Hacks | Leave a comment

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 … Continue reading

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 … Continue reading

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 … Continue reading

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 … Continue reading

Posted in General | Leave a comment

WordPress – Using Shortcodes in Template files

echo do_shortcode(‘[shortcode]‘);

Posted in General | Leave a comment

How to import a compressed mysql file .sql.gz using linux shell?

Login into your server using a shell program like putty. Type in the following command on the command line zcat DB_File_Name.sql.gz | mysql -u username -p Target_DB_Name where DB_File_Name.sql.gz = full path of the sql.gz file to be imported username … Continue reading

Posted in MySQL | Leave a comment

Running WordPress Queries in Non-WordPress Pages

At times you might want to run the WordPress queries or wordpress functions in the page located outside the wordpress templates. Thanks to wordpress for providing a very simple solution to this. You just need to include the file called … Continue reading

Posted in Wordpress, Wordpress Hacks | Leave a comment

Canonical URL solution – redirect non-www to www and index.php to your homepage

Canonical URL issue has always been a headache to the Webmasters and SEOs. But thanks to apache’s mod_rewrite which provide nice escapes for this problem 1. Rewrite all your urls WITHOUT www to WITH www Options +FollowSymLinks RewriteEngine on RewriteCond … Continue reading

Posted in SEO, URL Rewriting, Webmaster Issues | 1 Comment