How to merge one WordPress site with another?

Status
Not open for further replies.

shadpb

Active Member
89
2017
15
1,425
I need to merge my one WordPress website with another, now I am doing like this. I have downloaded everything from number one WordPress site's uploads directory and uploaded it into my targeted WordPress install uploads directory. Exported Posts from number one WordPress and imported it into the targeted Wordpress site.

Now the problem is all posts images loading from the old domain, how can I fix this?? am I doing the wrong way? do I need to do anything when importing so all old domina replace with the current domain?
 
5 comments
The links are probably saved in the database with the old domain. All you need to do is use something like search and replace and search for the domain name and replace it with new domain.

Remember to first back-up you database.
 
first, remove imported posts from the new site. then use below plugin to export your old posts with images + attachments

plugin: https://wordpress.org/plugins/demomentsomtres-wp-export/

(this plugin can enabled advance options for default Wordpress export tool)

now import to the new site :)
Post automatically merged:

The links are probably saved in the database with the old domain. All you need to do is use something like search and replace and search for the domain name and replace it with new domain.

Remember to first back-up you database.

yeah this should work too because OP already uploaded images to new site :D
 
Change the URLs of the content of pages and articles (link, image, document, etc.)
The URLs contained in the pages and articles of a WordPress site are written in absolute and not in relative. To modify the URL you must therefore use the following request:

UPDATE wp_posts
SET post_content = REPLACE (post_content, 'http:// www . old site. com', 'http:// www . new site . com');

don't forget to make a backup of your site before any manipulation
 
Last edited:
Status
Not open for further replies.
Back
Top