WordPress.org

Forums

Force WordPress to rescan Media Library (4 posts)

  1. pleasureinstitute
    Member
    Posted 2 years ago #

    Hello.

    I've used WordPress's Export Tool to backup pages and posts, in separate files, and imported them into a new blog. I have about 1,000 images in the old site. How can I migrate all of the attachments that my orignal posts had?

    So far, what I've done is move the images into the uploads folder, but WordPress doesn't see them. Is there some way I could use the old database and migrate the attachment information to the new website? Or is there a rescan function or something?

    Any ideas would be very much appreciated.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    You can use the export tool to also include all attachments. I suggest you make a new export file and this time, check "All content". Then, before you import the content, delete all files & folders in wp-content/uploads and let WordPress handle them itself.

  3. pleasureinstitute
    Member
    Posted 2 years ago #

    Hm. Now I have two of every category in my navigation menu. Is there a way to prevent this from happening?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Yes - delete all content and then re-run the import.

Topic Closed

This topic has been closed to new replies.

About this Topic