{"id":8927,"date":"2011-12-15T19:53:18","date_gmt":"2011-12-15T19:53:18","guid":{"rendered":"http:\/\/wpml.org\/?p=8927"},"modified":"2011-12-15T19:53:18","modified_gmt":"2011-12-15T19:53:18","slug":"wpml-2-4-2-content-duplication-and-wysiwyg-custom-fields","status":"publish","type":"post","link":"https:\/\/wpml.org\/ja\/changelog\/2011\/12\/wpml-2-4-2-content-duplication-and-wysiwyg-custom-fields\/","title":{"rendered":"WPML 2.4.2 &#8211; Content Duplication and WYSIWYG Custom Fields"},"content":{"rendered":"<p><strong>WPML includes full support for untranslated content, using the new Content Duplication feature. It also lets you translate custom fields using a Visual WYSIWYG editor.<\/strong><\/p>\n<h2>Displaying Untranslated Content<\/h2>\n<p>It turns out that displaying untranslated content across different languages is not as simple as you&#8217;d think. WPML 2.4.2 supports this by allowing you to duplicate that content to different languages. For example, if you want English blog posts to appear in Spanish, you can duplicate them all in one go.<\/p>\n<p><strong>To see how to duplicate content in different languages, have a look at the <a href=\"https:\/\/wpml.org\/ja\/changelog\/2011\/12\/wpml-2-4-2-beta-displays-untranslated-content\/\">previous post about it<\/a>.<\/strong><\/p>\n<p>There are interesting results to this and we hope that we have them all covered.<\/p>\n<p>For example, if your Spanish blog now includes English posts, you want search engines to understand what&#8217;s going on.<\/p>\n<p>Google will assume that your Spanish blog contains Spanish content. We&#8217;re added a way for you to tell Google that these duplicate posts are indeed in English and where they&#8217;re coming from.<\/p>\n<p>First, all Spanish posts will include the rel=&#8221;canonical&#8221; tag, linking to the original English post.<\/p>\n<p>Then, your index page (where different posts are displayed) will include a mix of content in different languages. There&#8217;s a way to handle this as well.<\/p>\n<p>We&#8217;ve added a new API call &#8211;\u00a0<strong>wpml_get_language_information<\/strong>.<\/p>\n<p>This returns an array that contains the locale, language name, text direction and other useful information. If you&#8217;re planning to display untranslated content, we recommend that you call this function in your theme and wrap texts in language information. This will tell Google exactly how to understand what it sees.<\/p>\n<h2>Translating Custom Fields using a Visual Editor (WYSIWYG)<\/h2>\n<p>If you&#8217;re using <a href=\"https:\/\/toolset.com\/home\/types-manage-post-types-taxonomy-and-custom-fields\/\">Types<\/a>\u00a0to manage custom fields and custom post types (and you should), you now have a way to create custom fields that use the native WordPress Visual editor. This means that you can have different full-featured editors for different parts of posts.<\/p>\n<p>WPML 2.4.2 follows and allows your translators to use WYSIWYG editors. When you use WPML&#8217;s Translation Editor and send content to translation, WPML automatically adjusts the translation interface to display fields in the same way writers see them.<\/p>\n<p>It supports single-line fields, text-area (multiple lines) and now, also\u00a0WYSIWYG fields.<\/p>\n<h2>SEO Love with Per-Language Sitemaps<\/h2>\n<p>This version of WPML also includes a fix for a very old problem. When you use languages-per-domains, you&#8217;ll need a separate XML sitemap to give to Google. If your single sitemap includes all pages, in all languages, Google rejects it.<\/p>\n<p>WPML 2.4.2 adds support for creating per-domain sitemap with Yoast&#8217;s <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wordpress-seo\/\">WordPress SEO plugin<\/a> (which we use and recommend).<\/p>\n<p>When you use WPML 2.4.2 together with WordPress SEO (version 1.1.1 and above), you&#8217;ll get individual sitemaps &#8211; one per language.<\/p>\n<p>Open your <em>sitemap_index.xml<\/em> and you&#8217;ll see links to the different sitemaps per type and language. It will look like this:<\/p>\n<pre>\r\n  http:\/\/wpml.local\/post-sitemap.xml\r\n  http:\/\/wpml.local\/page-sitemap.xml\r\n  http:\/\/wpml.local\/category-sitemap.xml\r\n  http:\/\/fr.wpml.local\/post-fr-sitemap.xml\r\n  http:\/\/fr.wpml.local\/page-fr-sitemap.xml\r\n  http:\/\/fr.wpml.local\/category-fr-sitemap.xml\r\n  http:\/\/de.wpml.local\/post-de-sitemap.xml\r\n  http:\/\/de.wpml.local\/page-de-sitemap.xml\r\n  http:\/\/de.wpml.local\/category-de-sitemap.xml\r\n  http:\/\/es.wpml.local\/post-es-sitemap.xml\r\n  http:\/\/es.wpml.local\/page-es-sitemap.xml\r\n  http:\/\/es.wpml.local\/category-es-sitemap.xml\r\n<\/pre>\n<p>In the Google Webmasters console, you need to submit all the sitemaps for each language. So, for instance, in our Spanish domain, we&#8217;ll need to submit:<\/p>\n<pre>\r\n  http:\/\/es.wpml.local\/post-es-sitemap.xml\r\n  http:\/\/es.wpml.local\/page-es-sitemap.xml\r\n  http:\/\/es.wpml.local\/category-es-sitemap.xml\r\n<\/pre>\n<p>It&#8217;s been a pleasure working with <a href=\"http:\/\/yoast.com\/\">Joost<\/a> on this functionality. You can expect more great stuff for multilingual SEO in the near future.<\/p>\n<h2>Bugs Fixed<\/h2>\n<p>The joy is never complete without a few bugs to crush. In this release, we&#8217;ve significantly improved handling duplicate slugs. This is something that we added to WPML 2.4.1, but had some glitches in some cases. Now, it looks like all cases are handled.<\/p>\n<p>We also included fixes for everything reported in the forum until now. I you have anything that&#8217;s not working as expected, don&#8217;t hold hack. <a href=\"http:\/\/wpml.org\/forums\">Let us know about it<\/a>.<\/p>\n<p><strong>Oh, and I almost forgot, Happy WordPress 3.3!<\/strong> (yes, WPML has been WP 3.3 compatible for a few weeks now)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WPML includes full support for untranslated content, using the new Content Duplication feature. It also lets y [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"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,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"categories":[48],"tags":[],"class_list":["post-8927","post","type-post","status-publish","format-standard","hentry","category-changelog"],"spectra_custom_meta":{"_edit_last":["2"],"_edit_lock":["1324024635:2"],"_yoast_wpseo_metadesc":["WPML 2.4.2 supports untranslated content, with the Content Duplication feature. It also supports translation custom fields in Visual editor."],"_icl_translator_note":[""],"ratings_users":["0"],"ratings_score":["0"],"ratings_average":["0"],"_alp_processed":["1408524406"],"_oembed_bd297e209624e11355395418b468d409":["{{unknown}}"],"_oembed_b969b15ba299b2b428881df85710ac64":["{{unknown}}"],"_oembed_227c3996b88e71628d26d2b5e14f8801":["{{unknown}}"],"_oembed_1f5cf5f305b375c3d401f1389d439dd4":["{{unknown}}"],"_oembed_b78cc50d7b9c7f8dbe45ab06e4f197f3":["{{unknown}}"],"_oembed_6b3021705bcb82e7c808fbde89a28ab7":["{{unknown}}"],"_oembed_55b2ce6feeca37e2a2f801fd030a7a0e":["{{unknown}}"],"_oembed_9c93b11b6b2117647a155ea6e71a17fb":["{{unknown}}"],"_oembed_dce234ac33f8392c84df2abd41a9c8dd":["{{unknown}}"],"_oembed_eac9d1d34df027ef441b1fc841277bc3":["{{unknown}}"],"_oembed_75777a566b49ace7dde0ef94c52b5d90":["{{unknown}}"],"_oembed_29c3082e68d00dde23345b4b99ca0525":["{{unknown}}"],"_oembed_91c4a966854e454ae9cd5d8238fe6125":["<iframe title=\"How Repeatable Field Groups Work in Toolset\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/aWB-upmpbfo?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_91c4a966854e454ae9cd5d8238fe6125":["1594368880"],"_oembed_605538d4bdc05d8e5064feba452e6920":["<iframe title=\"Creating and using repeatable field groups\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/1D501I-yvGI?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_605538d4bdc05d8e5064feba452e6920":["1594368880"],"_oembed_e7fc203a84c888125be9273e359b9ff7":["<iframe title=\"Displaying Repeatable Field Groups with Toolset\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/SmDE-MPwA8Q?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_e7fc203a84c888125be9273e359b9ff7":["1594368880"],"_oembed_61cf92166b7fafbde823833296dd30a3":["<iframe title=\"Displaying Content Conditionally\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/cs6jHPj4yXk?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_61cf92166b7fafbde823833296dd30a3":["1594368881"],"_oembed_26e0e5de3d5acfa0214142b132e6ac63":["<iframe title=\"Using Pagination with AJAX Updates\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/4T38aMCgEIY?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_26e0e5de3d5acfa0214142b132e6ac63":["1594368881"],"_oembed_0be3190628599f17adee76beefbea62d":["<iframe title=\"Translating Repeatable Fields Groups With WPML\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/y2Km0DhpekE?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_0be3190628599f17adee76beefbea62d":["1594368881"],"_oembed_9d8f38350a62c2462b3bba4cd94fcb5c":["{{unknown}}"],"_oembed_2b752d957f9927f85cd3e8f1842c4adf":["{{unknown}}"],"_oembed_a2bd2c0b8f2c628b1b3793abb74e7359":["<iframe title=\"WPML 3.9 with &quot;Display as Translated&quot; mode\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/eiPUIuELo2A?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_a2bd2c0b8f2c628b1b3793abb74e7359":["1634989373"],"_oembed_d4efa87b0e8cb39e3216e469b860b080":["{{unknown}}"],"_oembed_68f0d0000b16131319f633f9dc82351e":["<iframe title=\"Types 2 3 alpha1 with many-to-many relationship, repeating field groups and more\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/R73ilwkogSk?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_68f0d0000b16131319f633f9dc82351e":["1635338942"],"_oembed_bbf56b1d4c25ce11481afba39f176f85":["<iframe title=\"Using WPML to translate content created with page builders\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/MSqNzrdPMkE?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_bbf56b1d4c25ce11481afba39f176f85":["1637679973"],"_oembed_8b192c37df925cacb831b3922e69595d":["<iframe title=\"Using WPML To Translate Pages Built With Fusion Builder (Avada Theme)\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/_bNqjjBPdGA?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_8b192c37df925cacb831b3922e69595d":["1647428311"],"_oembed_f56bf1c5a64a315a94e4cbf7a197b2b0":["<iframe title=\"Integration between Astra theme and Toolset\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/z0GrsNVmFjo?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_f56bf1c5a64a315a94e4cbf7a197b2b0":["1653834093"],"_oembed_c0f0fe1223a8b20dc94265f83b277e94":["<iframe title=\"How to Display Content Conditionally in WordPress - Free Course\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/0jaahChFodg?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_c0f0fe1223a8b20dc94265f83b277e94":["1660740267"],"_oembed_4cfc36a20eaaa6d52ffcb90b45efbebf":["{{unknown}}"],"_oembed_9596c0d9095e7ce9cc90624324ef4422":["<iframe title=\"Duplicator For WordPress Quick Overview\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/yZ7pHmR9JC8?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_9596c0d9095e7ce9cc90624324ef4422":["1665032641"],"_oembed_12570cf8030926800bac0f1584e1e153":["<iframe title=\"How to use the backup wizard in cpanel\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/eS-tCkc-gm0?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_12570cf8030926800bac0f1584e1e153":["1665032641"],"_oembed_1c0ef2e069ab1e666be8a1bac83a42ee":["{{unknown}}"],"_oembed_e9018e6807d31b4505b7ad464275fdce":["<iframe title=\"How to copy multiple accounts from another server to your WHM server using SSH\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/C6ro9h0qowU?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_e9018e6807d31b4505b7ad464275fdce":["1665032641"],"_oembed_9052213bd50132682bbabb79e50bace9":["<iframe title=\"How to use FTP to upload files to WordPress for Beginners\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/_nDQz1JQfYA?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_9052213bd50132682bbabb79e50bace9":["1665032641"],"_oembed_cfcc8d32f359dd000173b240cccb4392":["{{unknown}}"],"_oembed_b6b58dddea390a2faa8b176dcd53d805":["<iframe title=\"How custom types and fields make it easy to manage content\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/BNu5PGG93J0?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_b6b58dddea390a2faa8b176dcd53d805":["1666867999"],"_oembed_57975f4ba5c8952521d5c822cc574a95":["<iframe title=\"How to build a membership site in WordPress using Toolset plugins\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/7C1dFwxXME8?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_57975f4ba5c8952521d5c822cc574a95":["1666867999"],"_wpml_media_featured":["1"],"_wpml_media_duplicate":["0"],"_oembed_d45e48e1af800662f1092912cdfb3725":["<iframe title=\"WPML Translation Manager Role\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/zKax_E3jRB0?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>"],"_oembed_time_d45e48e1af800662f1092912cdfb3725":["1692598175"],"_oembed_66b65cc4963b02a06397f5195d38724a":["<iframe title=\"WPML New Media Translation\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/aUTPX7kahUs?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>"],"_oembed_time_66b65cc4963b02a06397f5195d38724a":["1692598175"],"_oembed_1a7aa0a619dad47a6cfdae8f8e97e437":["<iframe title=\"How to use the new WPML Advanced Translation Editor\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/kAaSEpjijhQ?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>"],"_oembed_time_1a7aa0a619dad47a6cfdae8f8e97e437":["1692598175"],"_wpml_word_count":["753"],"_uag_css_file_name":["uag-css-8927.css"],"_uag_page_assets":["a:9:{s:3:\"css\";s:260:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media(max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media(max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:1:{i:0;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1778314700\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Amir","author_link":"https:\/\/wpml.org\/ja\/author\/amir\/"},"uagb_comment_info":0,"uagb_excerpt":"WPML includes full support for untranslated content, us&hellip;","_links":{"self":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts\/8927","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/comments?post=8927"}],"version-history":[{"count":16,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts\/8927\/revisions"}],"predecessor-version":[{"id":8975,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/posts\/8927\/revisions\/8975"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/media?parent=8927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/categories?post=8927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/ja\/wp-json\/wp\/v2\/tags?post=8927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}