WordPress 批量重新生成GUID

update twi_posts
set guid = concat(‘http://www.xiaokyun.com/?p=’,ID)
where post_status = ‘publish’
and post_type = ‘post’;

update twi_posts
set guid = concat(‘http://www.xiaokyun.com/?post_id=’,ID)
where post_status = ‘publish’
and post_type = ‘page’;

Published by

@XiaoKyun

双鱼男,过分热心的好人。