0

Something wrecked a non-profit WordPress site I'm responsible for (I'm not a WP expert, just the most technical of all our volunteers). I was able to restore most of it from a backup, but the database seems to have forgotten most of the links to the media in the wp-content/uploads. All the media is still in the directories, but the database doesn't know it is there.

Obviously I could manually re-import all the hundreds of photos, but before I resort to that, I wanted to see if there is a technique or a plugin that would add everything already neatly sorted and stored in /uploads to the media database. Most of the plugins I've found are all about deleting orphans, but I need to add them to the db.

  • 1
    Re-importing them wouldn't be that different from what you're asking, either way posts of type attachment would need to be created and filled – Tom J Nowell Jun 12 at 16:59
1

This is random, but a friend of mine got himself into the same situation a two weeks back and found this plugin to be helpful.

https://wordpress.org/plugins/media-sync/

But as Tom mentioned above in his comment, you'll run into attachment post type issues.

Hope this helps you get half way there!!

  • That was exactly what I needed - it got me 100% of the way there! Many thanks! – Fred Hamilton Jun 13 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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