I'm copying wordpress from my production to my staging site.
I do this by:
- copying all files
- making a mysql dump
- importing mysql dump
- updating urls in the database with:
Statements:
UPDATE wp_options SET option_value = REPLACE(option_value, 'http://www.domain.de', 'http://staging.domain.de');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://www.domain.de', 'http://staging.domain.de');
UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.dailycat.de', 'http://staging.domain.de');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.domain.de', 'http://staging.domain.de');
Doing this, some of the setting of e.g. the theme, widgets and mailchimp are lost. They are still in the database but they are not showing up on the screens. Any idea how to fix this?
Thanks and I really appreciate your help!