Category Archives: Wordpress

Changing WordPress Site URL using raw MySQL Query

At times, you may want to migrate a wordpress installation to another domain. At that point of time, you need to change the website url in the wordpress database to point to the new website url. 1. Change the option … Continue reading

Posted in Wordpress, Wordpress Hacks | Leave a comment

WordPress: WP Query with Custom Fields

$args = array( ‘posts_per_page’ => -1, ‘meta_key’ => ‘city’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’, ‘meta_query’ => array( array( ‘key’ => ‘destination_type’, ‘value’ => ‘city, state’, ‘compare’ => ‘IN’ ), array( ‘key’ => ‘country’, ‘value’ => $country, ‘compare’ => ‘=’ … Continue reading

Posted in Wordpress | Leave a comment

Themed Login & Register Page for WordPress

WordPress is a great CMS and has huge customization abilities. Adding to the list is the “Theme My Login” plugin through which you can have themed “Login”, “Lost Password” and “Register” page. Just install and activate the plugin and you … Continue reading

Posted in Wordpress | Leave a comment

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