Importing Posts and galleries with ids but galleries look broken

I want to move posts from my old blog to new one which has a few images and posts already. (My new blog relies on a lot of plugins. Other way just won’t work.) I want to import the posts. (importing all breaks menus, pages etc. which is not a good solution.)

Posts are getting new ids if there is a conflict and that is fine, they still get listed. Galleries inside posts have weird problems though. The posts have ids like this : .

I tried importing via wordpress and ‘insert ignore’ via phpMyAdmin.

Duplicate image ids I saw in posts_meta, made the galleries stop right at that duplicate id image. And incremented ids made galleries fill with random(shifted) or broken images. These new ids don’t correspond to the ids inside posts’ content I think.

I want to fix it via database, plugin or any other possible way.

Read more here:: Importing Posts and galleries with ids but galleries look broken

Leave a Reply

Your email address will not be published. Required fields are marked *