phpmyadmin,找到你的数据表,然后运行SQL,输入以下语句即可:
UPDATE wp_posts SET post_content = replace(post_content,'old','new');
其中old 是旧的字符串,new是你要替换的文字。
在WordPress主题的functions.php中插入以下代码:
function content_str_replace($content =''){$content = str_replace('old','new', $content);return $content;}add_filter('the_content','content_str_replace', 10);
其中old 是旧的字符串,new是你要替换的文字。