Comments on: Why WordPress Widgets Vanish When Migrating to New URL We build High Quality, Good Looking Premium WordPress Themes that are Easy to Use and ready for just about anything. Tue, 28 Jun 2016 19:01:53 +0000 hourly 1 By: Leland Sun, 07 Jul 2013 11:37:30 +0000 Hey Ross, thanks for the added insights. Nice to know there are a few other (easier) methods of handling this, especially when the issue is not within widget text.

And thanks for the tip on the ‘guid’ field, I’ll look into that.

By: Ross W Sun, 07 Jul 2013 05:17:04 +0000 This is right, but there’s a few other things to know.

There are all sorts of places where the URL might be encoded in a serialised array. I’ve seen it in widget settings, plugins settings, theme settings, even post_meta for media items.

Another method I’ve used that’s easier is to use the WordPress Move plugin. To do this, once you’ve copied the database over just update ‘siteurl’ and ‘home’ in the wp_options table, login to wp-admin, install the plugin and then use the migration tool to rename the URL.

It’s also worth noting that you shouldn’t really do a global search and replace because the ‘guid’ field on in wp_posts should not be updated.

Finally, if you do a lot of this kind of thing I’d really recommend a tool like ManageWP or InfiniteWP – it will make your life a whole load easier!