0

I'm transferring a site using the WordPress importer and Exporter settings. First, I downloaded the Posts content and the Media content, so I have two xml files.
After importing in the new site, I noticed that inside a posts, in the Add media section, when I select the "Uploaded to this post" option no images are listed. The media library shows all the images, and add media I'm also to see all the images.

Does anyone know what database content I need transfer to see the group of images uploaded to a particular post using the "Uploaded to this post" option?

1 Answer 1

0

First thing to try is to export and import the whole content inside of one single xml file. Maybe this does the trick. If there are no reasons for seperating the posts and the media, you should try to not do this. It can be an issue.

If this isn't working too, you can maybe use a plugin (i.e. "All-in-One WP Migration") to make things work. Never had any issues using this one. It is made for the migration of whole wordpress websites.


You can also try to get the images attached to the posts again.

The documentation of wordpress says: "If it is uploaded via the Media Add New Screen or Media Library Screen it will be unattached, but may become attached to a post when it is inserted into post." https://wordpress.org/support/article/media-library-screen/

You should try saving all of your posts again. If there are the images inserted, they might get attached to the posts in the moment they get saved.

If this does not work, you can also try to set the images by hand. In the media library you can filter the posts by "unattached". You get all your unattached files listed and can attach them by simple clicking the "attach" link and selecting the post you like. This only is recommended if you do not have hundreds of images... Have a look: https://wordpress.org/support/article/media-library-screen/#actions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.