admin管理员组文章数量:1426959
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 Answer
Reset to default 2This 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!!
本文标签: databaseHow can I UNorphan media files
版权声明:本文标题:database - How can I UN-orphan media files? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745408946a2657379.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
attachment
would need to be created and filled – Tom J Nowell ♦ Commented Jun 12, 2019 at 16:59