Skip Navigation
Updated
May 24, 2022

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

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

Exporting Multilingual Websites

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.

  1. To export the default language posts, go to WP All ExportNew Export.
  2. Choose Posts from the Choose a Post Type drop-down menu.
  3. Click on the Customize Export File button.
Choosing the post type you want to export
  1. Expand the Standard section under the Available Data window, and drag the WPML Translation ID to the fields area.
  2. You can also add the Categories and Tags fields to be exported.
Adding which fields should be exported
  1. 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.
Exporting the default language posts
  1. 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.
Naming your file and running the export
  1. Once the export process is completed, click on the CSV button to download the exported file.
Downloading the CSV file
  1. 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.
Exported default language CSV file
  1. Repeat the same process, but this time make sure to choose the secondary language you want to export.
Choosing the secondary language you want to export

Exporting Your Multilingual Content With a Cron Job

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:

  • http://example.com/pt-pt/wp-cron.php?export_key=qj3Y0NoTYgS7&export_id=52&action=trigger
  • http://example.com/pt-pt/wp-cron.php?export_key=qj3Y0NoTYgS7&export_id=52&action=processing

As you can see, we added the /pt-pt/ (language code for Portuguese) to the URLs.

Known Issues

There are no unresolved compatibility issues between this plugin and WPML. Search all known issues.

Importing Your Multilingual Posts and Pages

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.