{"id":1342962,"date":"2017-08-31T03:09:01","date_gmt":"2017-08-31T10:09:01","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/"},"modified":"2017-08-31T03:09:01","modified_gmt":"2017-08-31T10:09:01","slug":"importing-events-and-wpml-website","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/","title":{"rendered":"Importing Events and WPML website&#8230;"},"content":{"rendered":"<p>Hi,<\/p>\n<p>we are running a website using WPML to serve the website in 4 different languages. So far so good&#8230;.<\/p>\n<p>What really gives us trouble is importing events and make them available in all languages. We have created different Calendar URLs for each language. If we manually go into the backend, change the language to e.g. french and then run the import of the french calendar everything works fine. Those imported events are created with &#8220;French&#8221; as their language and are then displayed on the french events page. If I switch the language in the admin backend to english, then manually run the import of the english calendar, this also works fine.<\/p>\n<p>BUT&#8230;.this does not work when running scheduled imports, because the scheduler does no change the language and leave it to the default.<\/p>\n<p>What are your plans on supporting WPML in the future?<\/p>\n<p>Any chance you can add a field in the import settings which allows to set the language of the import. That would be perfect.<\/p>\n<p>Or any idea how I can tweak this in the importer code? I can easily identify the language used based on the URL parameter. So if there a chance to add a filter that runs before the importer Starts, so that I can change the default language?<\/p>\n<p>I really need to find a solution for this problem. We never apply any changes to the events via the WP backend. All changes are done in the calendar&#8230;<\/p>\n<p>Thanks, Carsten<\/p>\n","protected":false},"template":"","class_list":["post-1342962","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>Importing Events and WPML website... -<\/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\/importing-events-and-wpml-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Importing Events and WPML website... -\" \/>\n<meta property=\"og:description\" content=\"Hi, we are running a website using WPML to serve the website in 4 different languages. So far so good&#8230;. What really gives us trouble is importing events and make them available in all languages. We have created different Calendar URLs for each language. If we manually go into the backend, change the language to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/\",\"name\":\"Importing Events and WPML website... -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-08-31T10:09:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/#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\":\"Event Aggregator\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Importing Events and WPML website&#8230;\"}]},{\"@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":"Importing Events and WPML website... -","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\/importing-events-and-wpml-website\/","og_locale":"en_US","og_type":"article","og_title":"Importing Events and WPML website... -","og_description":"Hi, we are running a website using WPML to serve the website in 4 different languages. So far so good&#8230;. What really gives us trouble is importing events and make them available in all languages. We have created different Calendar URLs for each language. If we manually go into the backend, change the language to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/","name":"Importing Events and WPML website... -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-08-31T10:09:01+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/importing-events-and-wpml-website\/#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":"Event Aggregator","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/"},{"@type":"ListItem","position":5,"name":"Importing Events and WPML website&#8230;"}]},{"@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\/1342962","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1342962\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1342962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}