Import users from old WP site to new one

Changing the user IDs could be problematic. Other tables reference those – including wp_usermeta but if they are authors, customers, etc. then any tables that hold those items – like wp_posts – reference the author by user ID. Changing the umeta_ids should be safe, because that value isn’t referenced elsewhere that I’m aware of. It … Read more

Switching Databases in LocalHost

just to understand you… You have a livesite on some host which uses cpanel and you want to revert it back to your local Installation? (e.g. xamp) I think the easiest way is to use a Backup/Restore plugin. For example Akeeba Backup (free and easy to use). It also helps you to replace permalinks that … Read more

WordPress query is not returning proper results

Take a look at your meta_query param. With and without country param. // With country ‘meta_query’ => array( 0 => array( ‘key’ => ‘_al_listing_country’, ‘value’ => array( 0 => ‘Pakistan’, 1 => ‘United Kingdom’, ), ‘compare’ => ‘IN’, 0 => array(), 1 => array( ‘key’ => ‘_al_listing_model_name’, ‘value’ => array( 0 => ‘F12 Berlinetta’, 1 … Read more