WordPress offers a native option with which you can export your WordPress posts. The WordPress export tool integrated into WordPress can export many other types of content in addition to posts and import them to another website:
- Pages
- Media
- Custom code
- Custom Fonts
- Custom icons
- etc.
The export options also depend on which plugins and themes you have active in your WordPress instance. The export of posts, pages and media is always available by default.
I recently used this tool myself in a client project to transfer posts that were published during a website redesign. The way via a WordPress Backup would have been much more time-consuming - so I opted for the native WordPress function.
If you have this or a similar use case, simply follow the instructions below to export and import your WordPress posts.
Instructions: Exporting WordPress posts
Depending on the size of the data volume, the process can be completed in just 5 minutes. If you have a lot of posts with large images, the export and import process may take longer. This is how it works:
1. log in to the WordPress dashboard
2. navigate in the menu under "Tools" > "Export"
3. decide which data you want to export and select it
4. optional: filter your selection by category, author, start and end date and status
5. confirm the export via "Download export file"
Import of WordPress posts
The previously downloaded .xml file can now be imported to your target website. After successful import, the desired posts will be available there as usual. You can use these step-by-step instructions for the import:
1. log in to the WordPress dashboard of your target WordPress instance
2. navigate in the menu under "Tools" > "Import data"
3. click on "Install now" under WordPress to install the WordPress Importer
4. click on Importer
5. select your previously exported file and confirm the upload using the blue "Upload and import file" button
5. now select how the exported author should be imported - create new or assign to existing user
6. important: Check the box "Download and import file attachments" if you also want to import post images
7. confirm with the "Send" button
You have now imported all exported posts to your desired website.
The import procedure for other content types, such as pages, media or custom codes, is exactly the same. You can therefore also use these step-by-step instructions for this.