meta-box icon indicating copy to clipboard operation
meta-box copied to clipboard

Fixing image & post IDs when import export

Open rilwis opened this issue 9 years ago • 3 comments

We save attachment ID and post ID for image_advanced and post fields. When export and import, the IDs are changed and makes the fields don't work with the saved data.

rilwis avatar Dec 16 '16 04:12 rilwis

I don't think there is much we can do if the ids change

funkatron82 avatar Dec 16 '16 04:12 funkatron82

If the WP Importer plugin has a hook to map the old values to the new, we can fix that. We had the similar problem with WPML which was fixed in #944 . If there's no hooks, then we can't do anything. But we should check that.

rilwis avatar Dec 16 '16 04:12 rilwis

The IDs don't seem to change when exporting and importing into new DB environment. something is happening (in my case) with the image src url. If I revert just the image url back to the original domain address and update the query table inside phpMyAdmin all meta fields show up inside wordpress/front-end for that individual post.

fhorstmann avatar Dec 16 '16 21:12 fhorstmann