WP All Export allows you to export multilingual websites translated with WPML. You can export posts, pages, WooCommerce products, custom post types, taxonomies, and more.
On This Page:
- Getting Started
- Exporting Multilingual Websites
- Exporting Your Multilingual Content With a Cron Job
- Known Issues with WP All Export
- Importing Your Multilingual Posts and Pages
Start by installing and activating the following plugins:
- WP All Export plugin
- WPML core plugin and WPML String Translation add-on
- For certain types of content like ACF and WooCommerce, you might need additional add-ons
With a multilingual website, to export your content in all languages you will need to export the data for each content type and each language separately. For example, if you have translated your pages and posts from English to French using the WPML plugin and wish to export the data, you will end up with four files:
- English Posts
- French Posts
- English Pages
- French Pages
When exporting the files, you will need to have a field that links each page or post to its corresponding translated page or post. This can be accomplished by simply adding a field called WPML Translation ID to your files.
Let’s go over a quick example of how we can export the posts for a multilingual website.
- To export the default language posts, go to WP All Export → New Export.
- Choose Posts from the Choose a Post Type drop-down menu.
- Click on the Customize Export File button.
- Expand the Standard section under the Available Data window, and drag the WPML Translation ID to the fields area.
- You can also add the Categories and Tags fields to be exported.
- If you’re running the free version of WP All Export, expand the Advanced Options section. If you’re running the pro version of WP All Export, expand the WPML section instead. In either case, choose your site’s default language, and click the Continue button.
- On the Configure Advanced Settings screen, choose your preferred settings then add the exported file name in the Friendly Name field. You can then click on the Confirm & Run Export.
- Once the export process is completed, click on the CSV button to download the exported file.
- Now we can open the CSV file and see the WPML Translation ID field, which will connect both the default and the secondary language CSV files when importing the data.
- Repeat the same process, but this time make sure to choose the secondary language you want to export.
When running a WordPress cron job to export your multilingual content, you may find that the content ends up assigned to the default language. To avoid this, you need to add the language code to the cron job’s URL. This way, the export is done in the correct language.
For example, to export the data in Portuguese, we can use the following URLs:
As you can see, we added the /pt-pt/ (language code for Portuguese) to the URLs.
In this tutorial, we have provided detailed instructions on how to export your multilingual posts and pages. To import your multilingual posts and pages, you can follow the detailed steps given in the WP All Import documentation.
To learn more about alternative solutions, visit our top Import and Export WordPress plugins.