{"id":1165015,"date":"2016-09-16T02:46:42","date_gmt":"2016-09-16T09:46:42","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/"},"modified":"2016-09-19T21:34:49","modified_gmt":"2016-09-20T04:34:49","slug":"for-geoff-b-as-discussed-wpml-batch-duplication-display","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/","title":{"rendered":"** For Geoff B. ** &#8211; As discussed &#8211; WPML batch duplication\/ display"},"content":{"rendered":"<p>Hi Geoff,<\/p>\n<p>Splitting out what I mentioned in the other thread.<\/p>\n<p>The issue we have is when events exist in English, but have not been translated into other languages &#8211; they do not display on the foreign language site.<\/p>\n<p>The scenario we should have is that if a translation does not exist of a post\/event, the default language version is displayed.<\/p>\n<p>This works for regular Blog posts, with WPML&#8217;s inbuilt functionality.<\/p>\n<p>Found in WPML -&gt; Languages -&gt; Blog Posts To Display.<\/p>\n<p>So, first and foremost, this doesn&#8217;t happen for Event posts. If we switch to French, only posts that have had a French translation added, are displaying.<\/p>\n<p>I had expected, being that as Events are just a custom post type, that it would work.<\/p>\n<p>I would say this is the root cause of the problem.<\/p>\n<p>Possible reason, given in the message under that section of WPML&#8230;<br \/>\n<em><br \/>\n&#8220;Please note that this setting affects only blog posts queried by the main loop in a <strong>theme&#8217;s index.php template.<\/strong>&#8220;<\/em><\/p>\n<p>Our theme is Avada. Avada claims to have pretty tight integration with Events Cal&#8230;.<\/p>\n<p>\/==<br \/>\nIn fact, a bit of background here &#8211; We have used and trusted Avada for years. The fact that Events Calendar was advertised as being included\/supported, was a partial reason why we adopted the Events Calendar as our chosen solution&#8230; \ud83d\ude41 )<br \/>\n==\/<\/p>\n<p>So that&#8217;s the problem and possible reason.<\/p>\n<p>Then, even if we try to workaround the problem using WPML&#8217;s batch duplication tool, that doesn&#8217;t work either.<\/p>\n<p>WPML&#8217;s comment on this:<\/p>\n<p>https:\/\/wpml.org\/forums\/topic\/display-english-if-translation-does-not-exist\/#post-1078156<\/p>\n<p>&#8220;This method is directed towards posts\/pages &#8230; Events Calendar is a plugin that if i remember well clients in the past have had difficulty with translating ..&#8221;<\/p>\n<p>To be honest, I think the concept of duplicating content into its own language, to trick the system into thinking it&#8217;s displaying a translated version, is absolutely ridiculous and a waste of resources.<\/p>\n<p>So, we really need to get this working the right way &#8211; eg the same way it does for blog posts &#8211; just &#8220;filling in the gaps&#8221; with the pre-existing English content, not duplicating things unneccessarily.<\/p>\n<p>Thanks and best wishes,<\/p>\n<p>Greg<\/p>\n","protected":false},"template":"","class_list":["post-1165015","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>** For Geoff B. ** - As discussed - WPML batch duplication\/ display -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"** For Geoff B. ** - As discussed - WPML batch duplication\/ display -\" \/>\n<meta property=\"og:description\" content=\"Hi Geoff, Splitting out what I mentioned in the other thread. The issue we have is when events exist in English, but have not been translated into other languages &#8211; they do not display on the foreign language site. The scenario we should have is that if a translation does not exist of a post\/event, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-20T04:34:49+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/\",\"name\":\"** For Geoff B. ** - As discussed - WPML batch duplication\/ display -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-09-16T09:46:42+00:00\",\"dateModified\":\"2016-09-20T04:34:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"** For Geoff B. ** &#8211; As discussed &#8211; WPML batch duplication\/ display\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"** For Geoff B. ** - As discussed - WPML batch duplication\/ display -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/","og_locale":"en_US","og_type":"article","og_title":"** For Geoff B. ** - As discussed - WPML batch duplication\/ display -","og_description":"Hi Geoff, Splitting out what I mentioned in the other thread. The issue we have is when events exist in English, but have not been translated into other languages &#8211; they do not display on the foreign language site. The scenario we should have is that if a translation does not exist of a post\/event, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/","article_modified_time":"2016-09-20T04:34:49+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/","name":"** For Geoff B. ** - As discussed - WPML batch duplication\/ display -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-09-16T09:46:42+00:00","dateModified":"2016-09-20T04:34:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/for-geoff-b-as-discussed-wpml-batch-duplication-display\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"** For Geoff B. ** &#8211; As discussed &#8211; WPML batch duplication\/ display"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1165015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1165015\/revisions"}],"predecessor-version":[{"id":1166238,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1165015\/revisions\/1166238"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1165015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}