admin管理员组文章数量:1129201
I use an automatic post importer in WordPress and add the images in post content with the external URL, I want to replace the link with the local site links.
DB function could do the trick.
eg: oldlink replace with newlink
Note: there is a 5K images in that way and need to be changed.
I have try to use search replace but not work because changing the externalk URL in the post content winch is I want to keep it. So the tick is to replace only the link with tag
Thanks for your help in advance
I use an automatic post importer in WordPress and add the images in post content with the external URL, I want to replace the link with the local site links.
DB function could do the trick.
eg: oldlink.com replace with newlink.com
Note: there is a 5K images in that way and need to be changed.
I have try to use search replace but not work because changing the externalk URL in the post content winch is I want to keep it. So the tick is to replace only the link with tag
Thanks for your help in advance
Share Improve this question edited Oct 4, 2022 at 11:27 user102195 asked Oct 4, 2022 at 10:48 user102195user102195 111 gold badge1 silver badge3 bronze badges1 Answer
Reset to default 0I was fixing image URLs in my posts with the next SQL-query
UPDATE wp_posts SET post_content=(REPLACE (post_content, '<old url>','<new url>'));
本文标签: urlsReplace media external links with local links
版权声明:本文标题:urls - Replace media external links with local links 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736735482a1950229.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论