最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

database - How can I UN-orphan media files?

programmeradmin1浏览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.

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.

Share Improve this question asked Jun 12, 2019 at 15:56 Fred HamiltonFred Hamilton 1153 bronze badges 1
  • 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 Commented Jun 12, 2019 at 16:59
Add a comment  | 

1 Answer 1

Reset to default 2

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/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!!

发布评论

评论列表(0)

  1. 暂无评论