本文整理自网络,侵删。
4月更新过文章,文章ID停留在146,5月忙于考试,文章一篇都没写,结果6月前几天写文章的时候,ID从146直接跳到148,也不知道什么原因,我的Wordpress是做过处理的ID是会自动连续的。打开数据库,把文章ID为148的改成147,完整的SQL语句如下:代码如下:
update wp_posts set id = 147 where id = 148;
update wp_term_relationships set object_id = 147 where object_id = 148;
update wp_postmeta set post_id = 147 where post_id = 148;
update wp_comments set comment_post_ID = 147 where comment_post_ID = 148;
update wp_posts set id = 147 where id = 148;
update wp_term_relationships set object_id = 147 where object_id = 148;
update wp_postmeta set post_id = 147 where post_id = 148;
update wp_comments set comment_post_ID = 147 where comment_post_ID = 148;
标签:WordPress
相关阅读 >>
对帝国cms、dedecms、phpcms、discuz、phpwind、xiuno负载测试总结
wordpress使用rss feed输出自定义文章类型内容的方法
更多相关阅读请进入《wordpress》频道 >>
相关推荐
评论
管理员已关闭评论功能...
- 欢迎访问木庄网络博客
- 可复制:代码框内的文字。
- 方法:Ctrl+C。