最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sql - Reset post IDs with all post meta

programmeradmin2浏览0评论

I imported posts from an old website. Posts from the new website have IDs under 100. Posts from the old website have IDs above 9934.

I tried to change manually the post IDs in phpmyadmin in order to follow the "small" IDs from my new website (101, 102, 103...). The problem is that I lost all the post_meta related to the old posts (Thats' normal because I didn't change the Ids for the post_meta). Because I can't change manually all post meta related IDs (Many custom fields), I am looking for a solution to "reset" all my post IDs.

I don't mind to reset all my posts, even the ones I created in the new website. The posts have to keep their post_meta.

What do you suggest to do that ?

发布评论

评论列表(0)

  1. 暂无评论