[Resolved] Modern Events Calendar Archive Translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with the translated archive of the Modern Events Calendar (MEC) on a WordPress site using WPML. The main archive in French displays correctly, but the English translated archive shows only the archive title without the MEC calendar/archive output. The archive title is also incorrectly displayed in French.
Solution: We found that there were two different event archive pages on the site: the default archive page generated by the MEC plugin and a custom page that was manually created but not translated. To resolve the issue, the custom page needs translation so the English version can display correctly. Additionally, we adjusted the WPML settings to set the shortcodes on the page to "Do not translate" and advised not to translate the default slug of the Events post type generated by the MEC plugin. Both pages are now functioning correctly.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
I’m experiencing an issue with the translated archive of Modern Events Calendar on a WordPress site using WPML.
Setup:
-Main language: French (fr_CA)
-Secondary language: English (en_CA)
-MEC plugin language appears to be English internally
-Events themselves are translated properly in both languages
Issue:
-Main archive in French works correctly: hidden link
-Translated archive in English exists at: hidden link
-However, the English archive shows only the archive title and not the actual MEC calendar/archive output
-The archive title is also not translated properly and still shows the French title: “Événements PEVC”
What we verified:
-The individual events are translated
-The translated archive URL resolves correctly
-MEC CSS and JS assets do load on the translated archive
-The French archive source code contains the full MEC archive markup, including the calendar output
-The English archive source code does not contain the MEC archive markup; it only outputs the <h1> archive title
-There is no custom code in the child theme related to this
-There is no custom code in Elementor related to this
-The WordPress Customize CSS only contains styling and does not inject archive markup
-WPML cache was cleared and the plugin was rescanned
-Permalinks and cache were reviewed during troubleshooting
Important observation from source code:
-On the French archive, MEC outputs the full archive structure and calendar
-On the English archive, MEC does not render the archive skin/body at all, even though the page is recognized as the MEC events archive and plugin assets are loaded
-This suggests the issue is not with event translation itself, but with WPML compatibility on the MEC archive rendering for the translated language.
Could you please advise:
-Whether MEC event archives are fully supported with WPML in this setup
-Whether there is any known issue with translated dynamic archives for MEC
-Whether any specific WPML setting is required so that the translated MEC archive renders the archive skin correctly in the secondary language
-Whether archive title/slug handling for MEC needs to be configured in a specific way with WPML
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
I created a staging website where you can run tests: dev.pevc.org
The goal is to translate the MEC archive title from “Événements PEVC” to “PEVC Events” on dev.pevc.org/en-ca/events/, and to display the translated calendar with the translated events.
You can find the main language (FR-CA) events archive page here: pevc.org/evenements/
Can you find the issue?
Please note that the translated content is not shown on the live website because it is currently being reviewed by the client. That is why you will not see any language switcher on the site. You need to use the admin to view the English content.
Thank you for sharing the staging site and the details.
After checking the setup, I noticed that there are actually two different event archive pages on the site:
The default archive page generated by the MEC plugin hidden link
A custom page that was manually created hidden link
The important point here is that the custom page you created is currently not translated, so WPML cannot display the translated version of the calendar or the translated archive title. You will need to translate this page as well so the English version can display correctly.
There are also two configuration details that are important in this setup.
First, the shortcodes used on the page should not be set as translatable. If they are translatable, WPML will send them for translation and you would then need to manually adjust the shortcodes in the translated page.. I have adjusted this from WPML settings so the shortcodes are set to “Do not translate”.
Second, you should not translate the default slug of the Events post type generated by the MEC plugin (WPML > Settings > Post type translation). If you want to use a different URL structure for another language, the correct approach is what you already did — create a separate page and use the slug you want there.
Both pages are working fine now, please check and let me know if any questions.
This page is private and not meant to be used : hidden link. The goal was to use hidden link and translate the archive on hidden link. The website was built around the default archive, not the custom one. That is why the custom archive was "Private" and not translated.
So, I see now that the default EN Events Archive exists here hidden link. That's good.
How do I translate the Archive Title? I need it translated in the Event Breadcrumbs as well.
Thank you.
New threads created by Dražen and linked to this one are listed below:
As I understand from your reply, the main issue is now resolved and we have achieved your goal. The only remaining point is related to the event breadcrumbs. I will need to check this separately to better understand what might be going wrong.
To keep things clear and easier to track, I have opened a new ticket for this topic: