Dragon
主机之家测评主机之家测评  2019-08-25 18:08 主机之家测评 隐藏边栏 |   抢沙发  97 
文章评分 0 次,平均分 0.0

只有 3 个设置:

1、起始时间自己更改一下。’2019-1-01′

2、然后就是控制随机生成在那个日期段。500

3、文章的起始 ID 和结束 ID。6297 AND 14332

UPDATE wp_posts SET post_date = DATE_ADD(‘2014-1-01’, INTERVAL ROUND(RAND() * 500 + 1) DAY) WHERE ID between 6297 AND 14332;

update wp_posts set post_modified = post_date WHERE ID between 6297 AND 14332;

update wp_posts set post_date_gmt = post_date WHERE ID between 6297 AND 14332;

update wp_posts set post_modified_gmt = post_modified WHERE ID between 6297 AND 14332;

update wp_posts set post_status = ‘publish’ WHERE ID between 6297 AND 14332;

然后再数据库里执行就可以了。

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

发表评论

扫一扫二维码分享