So I have two sites. Old site with old domain and new site with new domain. I've exported some posts. They have images, so when I done the import, they obviously reference the old site. Some posts have galleries and again, these reference the IDs of the old site.
Is there anyway (I presume at this point that there is always a way!) to go through the posts, check if an image references an old site, if it does, import it and update the link to the new media item?
Likewise, would I be able see what IDs are being passed to a gallery, grab them somehow, import, update etc? I see this being the trickier task
I've wrote no code so far - just wondering whether this has been raised and/or done?