Migrating Images From Custom DB

Posted in: Newspaper
Post count: 3

Hi. I just bought the theme and I am trying to migrate my old custom db into WP with Newspaper theme. Posts are successfully imported, but I cannot import the old images with relation to their new WP post entries.

I am running the following queries to add new lines in the wp_postmeta table:
– “INSERT INTO wp2m_postmeta(post_id, meta_key, meta_value) VALUES($newPostId, ‘_wp_attached_file’, $imagePath”)
– “INSERT INTO wp2m_postmeta(post_id, meta_key, meta_value) VALUES($newPostId, ‘_thumbnail_id’, “.$newImageId.”)

The lines are added, but the images do not appear under the posts.

Thanks in advance.

Post count: 22421

Hi,

Unfortunately we will not be able to help with this as the theme does not manage the database or images. They are handled by wordpress. We have not tested migration from one platform to another so we cannot provide any insight in how exactly to go about it. You can use these few example son how to do it:
https://www.tipsandtricks-hq.com/how-to-easily-import-or-export-any-of-your-wordpress-database-content-using-phpmyadmin-3415
http://migratetowp.com/faqs/importing-a-sql-file-with-your-wordpress-data/
https://wordpress.stackexchange.com/questions/49202/importing-a-database-from-a-custom-built-cms-to-wordpress

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.