Mehdi
Mehdi

Reputation: 13

Import wordpress posts to another wordpress site

I had a website based on wordpress.Then domain has expired and now I registered a new domain and built a new website which is based on wordpress too. Now I want to have my previous website's contents to be in the new one. I didn't make any backup using wordpress export function, So import option in new website can't be useful. The only thing is backed up is MYSQL database, how can I restore posts in the new website? Thanks

Upvotes: 0

Views: 1506

Answers (4)

Shobhit Chugh
Shobhit Chugh

Reputation: 180

Export your old data enter image description here

you have a .gz file and import the same file to new site....

Upvotes: 0

bingjie2680
bingjie2680

Reputation: 7773

Just import your backup database into your new database. and change the siteUrl and wordpressUrl in wp_option table to new domain. Then updolad all the wordpress files from your old domain into your new domain, change the database connection info in wp-config.php settings. then it will work as before.

Upvotes: 0

proctr
proctr

Reputation: 452

Assuming you're on Self Hosted Wordpress.org, You may use a suitable plugin for that

I found one here Here. You may find other options as well

Peace

Upvotes: 0

Related Questions