leeloo5e
Member
Posted 4 years ago #
I was exporting from my old WP to my new WP at a new Webhoster. But there is a problem with importing the "post_type"s "attachment". There is something like "http://yourdomain.de/?attachement_id=78" in the column "guid", but it has to be something like "http://yourdomain.de/wp-content/uploads/2007/07/pic.jpg" or else. Also the "post_mime_type" will not be inserted into the new WP database for attachments. So I have to upload all files again and put it into my posts. Do you have an idea when this will be fixed or how can I fix this easily?
leeloo5e
Member
Posted 4 years ago #
I made some changes in wp-admin/export.php line 190 I inserted
<wp:post_mime_type><?php echo $post->post_mime_type; ?></wp:post_mime_type>
to get the post_mime_type. In wp-admin/import/wordpress.php I inserted at line 273 the following:
$post_mime_type = $this->get_tag( $post, 'wp:post_mime_type' );
and at line 309 just inserting 'post_mime_type' to put the post_mime_type into the new wordpress database.
But the column 'guid' is still set to "http://www.domain.de/?attachment_id=78" or something else. I'm going crazy. I still can't find where I have to make the changes to set the right "guid" for "attachment"s.
Any Suggestions?