How to merge one WordPress site with another?

shadpb

Well-Known Member
61
7
8
2017
180
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

oceanking

Active Member
42
10
8
2019
65
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.
 

| L 3 3 T |

Active Member
26
2
3
2019
170
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
 

medi

Well-Known Member
75
13
8
2018
175
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:
Top Bottom