Skip to main content

Moving posts from one site to another in WordPress

Migrating content from one WordPress site to another is considered a daunting task. Most people resort to copying the content from each of the posts and pages, over to the new site. They would also need to copy details like post author, timestamp and comments. This method will take too long if there are many posts. Also the comments would list the author name as the person who adds it to the new site. Others would probably copy the same from the old database to the new one. This requires some basic technical knowledge about MySQL, and also how WordPress stores its data.

We may want to copy the posts from one site to another for various purposes. Either we could have changed the domain, or maybe we have revamped an existing site and need the content to be moved to the new site.

It is just two steps away! : Export and Import

The solution to this is provided by WordPress itself, and it isn't as scary as you would expect. WordPress comes with a built-in “Export” tool, and an “Import” plugin, which we would need to download. 
Migrating content to another website is a dilemma that many WordPress users face at one time in their life.
We can choose the posts, pages, and custom post types that we want to transfer, and export this as a file using the “Export” tool, and on the new site, we can import this file using the WordPress Importer plugin. As simple as that!

Exporting posts/pages from the old site

In the WordPress admin of the old site, go to Tools>Export.


Choose either “All content”, “Posts” or “Pages“. Leave other options as default unless you have other preferences. You can filter what is exported and only export content from particular categories, authors, date range and publication status.


Click “Download Export File” and save the file.

Importing to the new site

In the WordPress admin of the new site, go to Tools>Import. 


Select “WordPress“, install the importer by clicking “Install” in the popup. Then choose “Activate Plugin & Run Importer“. The file browser will open. Select the file to upload (the one you just downloaded). Click “Upload file and import“


Follow instructions to assign the author as you prefer. 


Check the checkbox “Download and import file attachments“, then click “Submit“.
All information will be identical to what it was before. Therefore, posts and pages will have the same publication date and be assigned to the same categories.

Final thoughts

WordPress is designed to make the entire site handling process easy even for non-technical folk. These features like the import/export are just another part of making life better for site owners. Don’t assume the content has to remain at a specific location. All it takes is a few moments to move posts, pages and images.

Comments

Popular posts from this blog

THE SWIFTMAILER INTEGRATION FOR THE YII 2 FRAMEWORK

Installation of Swiftmailer The preferred way to install this extension is through composer. Either run below code in composer php composer.phar require --prefer-dist yiisoft/yii2-swiftmailer or add code to the require section of your composer.json. "yiisoft/yii2-swiftmailer": "~2.1.0" Note: Version 2.1 of this extensions uses Swiftmailer 6, which requires PHP 7. If you are using PHP 5, you have to use version 2.0 of this extension, which uses Swiftmailer 5, which is compatible with PHP 5.4 and higher. Use the following version constraint in that case: "yiisoft/yii2-swiftmailer": "~2.0.0" Send Mail via SMTP from Yii2 Basic Open the configuration file /config/web.php and add your email credentials in array element inside components as shown below: <?php $params = require(__DIR__ . '/params.php'); $config = [      //...      'components' => [          'mailer' => [              'clas

What is Magento?

What is E-Commerce? Modern online business nowadays is becoming more and more challenging and more sophisticated. Mobile internet is accessible. Thus online stores are more trendy everywhere. E-Commerce is one of the most trending businesses in the world. E-Commerce, also known as electronic commerce or internet commerce, refers to the buying and selling of goods or services using the internet, and the transfer of money and data to execute these transactions. E-commerce is often used to refer to the sale of physical products online, but it can also describe any kind of commercial transaction that is facilitated through the internet. Whereas e-business refers to all aspects of operating an online business, e-commerce refers specifically to the transaction of goods and services. E-Commerce can take on a variety of forms involving different transactional relationships between businesses and consumers. Since Magento is the flexible and more secure platfo