A-A+
根据条件批量搜索和替换WordPress的文章内容字符串
找了一大圈没有找到如何批量搜索和替换某个特定分类下文章内容和字符串的方法,只能用下面的来替换了。
代码:
UPDATE wp_posts SET post_content = replace(post_content,'format="5"','format="6"') where post_content like '%Swimsuit%' or post_content like '%secret%'
找了一大圈没有找到如何批量搜索和替换某个特定分类下文章内容和字符串的方法,只能用下面的来替换了。
代码:
UPDATE wp_posts SET post_content = replace(post_content,'format="5"','format="6"') where post_content like '%Swimsuit%' or post_content like '%secret%'
来看看夏日!
来学习一下