{"id":926941,"date":"2016-08-08T10:25:46","date_gmt":"2016-08-08T10:25:46","guid":{"rendered":"https:\/\/wpml.org\/?p=926941"},"modified":"2018-10-29T12:14:09","modified_gmt":"2018-10-29T12:14:09","slug":"export-multilingual-websites-using-wp-all-export-and-wpml","status":"publish","type":"post","link":"https:\/\/wpml.org\/ja\/compatibility\/2016\/08\/export-multilingual-websites-using-wp-all-export-and-wpml\/","title":{"rendered":"Export Multilingual Websites Using WP All Export and WPML"},"content":{"rendered":"<h2><img decoding=\"async\" class=\"aligncenter wp-image-981935 size-full\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/07\/Expost-Mulitilingual-Websites.png\" alt=\"Expost Mulitilingual Websites\" width=\"680\" height=\"205\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/07\/Expost-Mulitilingual-Websites.png 680w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/07\/Expost-Mulitilingual-Websites-150x45.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/07\/Expost-Mulitilingual-Websites-300x90.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/h2>\n<h2>Introduction<\/h2>\n<p><a href=\"http:\/\/www.wpallimport.com\/export\/\"><strong>WP All Export<\/strong><\/a> allows you to export multilingual websites translated with WPML. You can export posts, pages, WooCommerce products, custom post types, and more to a CSV or XML file. You have the option to export all the fields in WordPress (categories, tags, custom taxonomies, custom fields, etc.)<\/p>\n<h2>Required Plugins<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.wpallimport.com\/export\/\">WP All Export<\/a> plugin (version 1.5.3 or above)<\/li>\n<li>A recent version of <a href=\"https:\/\/wpml.org\/purchase\/\">WPML<\/a> (version 4.0.8 or above)<\/li>\n<\/ul>\n<h2>Exporting Multilingual Websites<\/h2>\n<p>When you have a multilingual website, you will want to export your posts and pages in all languages. To achieve this, you will need to export the data for 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 4 files:<\/p>\n<ul>\n<li>English Posts<\/li>\n<li>French Posts<\/li>\n<li>English Pages<\/li>\n<li>French Pages<\/li>\n<\/ul>\n<p>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 the &#8220;WPML Translation ID&#8221; to your fields.<\/p>\n<p>Let&#8217;s go over a quick example of how we can export the posts for a multilingual website. In this example, we will export the posts created in both English and French. Note that, we have already created our post and translated them.<\/p>\n<ol>\n<li>To export the default language posts, go to WP <strong>All Export<\/strong> -> <strong>New Export<\/strong>.<\/li>\n<li>Choose Posts from the Choose a Post Type drop-down menu.<\/li>\n<li>Click on the <strong>Customize Export File<\/strong> button.<\/li>\n<figure id=\"attachment_2857718\" aria-describedby=\"caption-attachment-2857718\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export.png\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export-1024x645.png\" alt=\"\" width=\"1024\" height=\"645\" class=\"size-large wp-image-2857718\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export-1024x645.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export-150x94.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export-300x189.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export-768x483.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-post-type-you-want-to-export.png 1360w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-2857718\" class=\"wp-caption-text\">Choose the post type you want to export<\/figcaption><\/figure>\n<li>Expand the <strong>Standard<\/strong> section under the <strong>Available Data<\/strong> window, and drag the <strong>WPML Translation ID<\/strong> to the fields area.<\/li>\n<li>You can also add the Categories and Tags fields to be exported.<\/li>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Adding-the-WPML-translation-ID-categories-and-tags-to-the-exported-file-2.gif\"><img decoding=\"async\" class=\"aligncenter wp-image-991843 size-full\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Adding-the-WPML-translation-ID-categories-and-tags-to-the-exported-file-2.gif\" alt=\"Adding the WPML translation ID, categories and tags to the exported file\" width=\"600\" height=\"270\" \/><\/a><\/p>\n<li>Expand the <strong>WPML<\/strong> section and choose your site\u2019s default language. In our case, it is English.<\/li>\n<li>Click the <strong>Continue<\/strong> button.<\/li>\n<figure id=\"attachment_2857740\" aria-describedby=\"caption-attachment-2857740\" style=\"width: 765px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts.png\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts-765x1024.png\" alt=\"\" width=\"765\" height=\"1024\" class=\"size-large wp-image-2857740\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts-765x1024.png 765w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts-112x150.png 112w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts-224x300.png 224w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts-768x1028.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts-300x402.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Export-default-language-posts.png 850w\" sizes=\"(max-width: 765px) 100vw, 765px\" \/><\/a><figcaption id=\"caption-attachment-2857740\" class=\"wp-caption-text\">Export the default language posts<\/figcaption><\/figure>\n<li>On the <strong>Configure Advanced Setting<\/strong> screen, choose your preferred settings then add the exported file name in the <strong>Friendly name<\/strong> field. In our case, we will name it &#8220;English Posts&#8221;. You can then click on the <strong>Confirm &#038; Run Export<\/strong>.<\/li>\n<figure id=\"attachment_2857791\" aria-describedby=\"caption-attachment-2857791\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export.png\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export-1024x682.png\" alt=\"\" width=\"1024\" height=\"682\" class=\"size-large wp-image-2857791\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export-1024x682.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export-150x100.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export-300x200.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export-768x511.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Name-your-file-and-run-the-export.png 1413w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-2857791\" class=\"wp-caption-text\">Name your file and run the export<\/figcaption><\/figure>\n<li>Once the export process is completed, click on the <strong>CSV<\/strong> button to download the exported file.<\/li>\n<figure id=\"attachment_2857802\" aria-describedby=\"caption-attachment-2857802\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file.png\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file-1024x536.png\" alt=\"\" width=\"1024\" height=\"536\" class=\"size-large wp-image-2857802\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file-1024x536.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file-150x78.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file-300x157.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file-768x402.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Download-the-CSV-file.png 1395w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-2857802\" class=\"wp-caption-text\">Download the CSV file<\/figcaption><\/figure>\n<li>Now we can open the CSV file and see the <strong>WPML Translation ID<\/strong> field, which will connect both the default and the secondary language CSV files when importing the data.<\/li>\n<figure id=\"attachment_2857814\" aria-describedby=\"caption-attachment-2857814\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file.png\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file-1024x667.png\" alt=\"\" width=\"1024\" height=\"667\" class=\"size-large wp-image-2857814\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file-1024x667.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file-150x98.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file-300x195.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file-768x500.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Exported-default-language-CSV-file.png 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-2857814\" class=\"wp-caption-text\">Exported default language CSV file<\/figcaption><\/figure>\n<li>Repeat the same process, but this time make sure to choose the secondary language you want to export in step <strong>(6)<\/strong>. In our case, it will be French. As a result, you will have the secondary language CSV file exported.<\/li>\n<figure id=\"attachment_2857827\" aria-describedby=\"caption-attachment-2857827\" style=\"width: 971px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-secondary-language-you-want-to-export.png\"><img decoding=\"async\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-secondary-language-you-want-to-export.png\" alt=\"\" width=\"971\" height=\"860\" class=\"size-full wp-image-2857827\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-secondary-language-you-want-to-export.png 971w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-secondary-language-you-want-to-export-150x133.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-secondary-language-you-want-to-export-300x266.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/08\/Choose-the-secondary-language-you-want-to-export-768x680.png 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><figcaption id=\"caption-attachment-2857827\" class=\"wp-caption-text\">Choose the secondary language you want to export<\/figcaption><\/figure>\n<h2>Exporting your multilingual content with a cron job<\/h2>\n<p>When running a <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/wp_cron\">WordPress cron job<\/a> 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 <b>cron<\/b> job\u2019s URL. This way, the export is done in the correct language.<\/p>\n<p>For example, to export the data in Portuguese, we can use the following URLs:<\/p>\n<p>http:\/\/example.com\/pt-pt\/wp-cron.php?export_key=qj3Y0NoTYgS7&#038;export_id=52&#038;action=trigger<br \/>\nhttp:\/\/example.com\/pt-pt\/wp-cron.php?export_key=qj3Y0NoTYgS7&#038;export_id=52&#038;action=processing<\/p>\n<p>As you can see, we added the <b>\/pt-pt\/<\/b>\u00a0(language code for Portuguese) to the URLs.<\/p>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we have provided detailed instructions on how to export your multilingual posts and pages. In order to import your multilingual posts and pages, you can follow the detailed steps given in the <a href=\"https:\/\/wpml.org\/documentation\/related-projects\/legacy-wpml-all-import\/\">WPML All Import<\/a> documentation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction WP All Export allows you to export multilingual websites translated with WPML. You can export pos [&hellip;]<\/p>\n","protected":false},"author":76577,"featured_media":981935,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"categories":[1371,8],"tags":[],"class_list":["post-926941","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-compatibility","category-tutorials"],"_links":{"self":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts\/926941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/users\/76577"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/comments?post=926941"}],"version-history":[{"count":10,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts\/926941\/revisions"}],"predecessor-version":[{"id":2857873,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts\/926941\/revisions\/2857873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/media\/981935"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/media?parent=926941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/categories?post=926941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/tags?post=926941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}