Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are using the Modern Event Calendar with WPML for event management. After setting up translation for the M.E. Calendar post types and creating a test event, the translated version of your site incorrectly displays the event under the Archives: Event page instead of the expected page, and shows wrong date/time.
Solution:
We recommend changing the slug for the translated pages. Instead of using '/events/' for the translated page, try using '/evenements/' for the French version and '/upcoming-events/' for the English version. Ensure to include the same shortcodes on these new pages. This should help in correctly displaying the events as expected in the translated versions.

If this solution does not resolve your issue or seems outdated, we 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. If problems persist, please open a new support ticket.

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Andrey 1 week, 1 day ago.

Assisted by: Andrey.

Author Posts
January 18, 2025 at 8:40 pm #16609785

alexandreD-58

Background of the issue:
I am working with the Modern Event Calendar for my events management, which is supposedly compatible with WPML. I went under WPML > Settings and allowed translation for the M.E. Calendar post types. I have created a test event happening today. The issue can be seen at: hidden link. I expected to see: hidden link.

Symptoms:
The translated version of my site shows the event under the Archives: Event page of M.E. Calendar instead of displaying it correctly as it does in the main language version. It seems like the translated version has the wrong date/time compared to the main language version.

Questions:
Why does the translated version of my site show the event under the Archives: Event page?
Is there a translation issue causing the wrong date/time on the translated version?

January 19, 2025 at 5:05 pm #16610784

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could you please share the steps you took to create the event, along with the corresponding screenshots? Additionally, have you fully translated the event?

If you have a dedicated page that displays the event, you must also ensure you have translated it.

I have enabled debug information for this support ticket. Please follow this link for instructions on how to retrieve this information from your site and provide it to us: http://wpml.org/faq/provide-debug-information-faster-support/.

January 19, 2025 at 6:52 pm #16611000

alexandreD-58

Here are the exact steps that I took :

1- Installed the M.E. Calendar plugin
2- Went to -> WPML > Settings > Post Types Translation and made Events (mec-events) and Shortcodes (mec_calendars) translatable
3- Then, I went to the Categories section of M.E. Calendar and created a first category for which I have created a translated version
4- Then, I have added a first event and translated it. The right category is checked within it
5- Then, I have created a shortcode under M.E. Calendar's Shortcodes section, ensured that the starting date corresponded to my event's date, added the right category to the shortcode's settings and translated the said shortcode
6- Then I have created a new page to put the shortcode in it according the M.E. Calendar tutorial
7- When I view that page in the main language of my site, everything's fine: I can see my event showing up properly. But if I try viewing the translated version of that same page (with the translated shortcode in it), then I am getting the M.E. Calendar Archives page as if the date wasn't the same for both event. But both events in each language are showing the same event date.

So, it feels like somehow the translated version of my site is off regarding the current date or something.

screencapture-wcsquebec-ca-wp-admin-term-php-2025-01-19-13_12_59.png
screencapture-wcsquebec-ca-wp-admin-post-php-2025-01-19-13_17_57.png
screencapture-wcsquebec-ca-wp-admin-post-php-2025-01-19-13_17_09.png
screencapture-wcsquebec-ca-wp-admin-post-php-2025-01-19-13_16_36.png
screencapture-wcsquebec-ca-evenements-2025-01-19-13_26_48.png
screencapture-wcsquebec-ca-en-events-2025-01-19-13_27_04.png
Capture d’écran, le 2025-01-19 à 13.42.41.png
Capture d’écran, le 2025-01-19 à 13.42.22.png
Capture d’écran, le 2025-01-19 à 13.37.06.png
Capture d’écran, le 2025-01-19 à 13.36.56.png
Capture d’écran, le 2025-01-19 à 13.36.49.png
Capture d’écran, le 2025-01-19 à 13.16.20.png
Capture d’écran, le 2025-01-19 à 13.15.13.png
Capture d’écran, le 2025-01-19 à 13.09.20.png
January 20, 2025 at 7:48 pm #16615414

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – to be of better help. When you log in, you will find the needed fields below the comment area to leave your next reply. The information you will enter is private, meaning only you and I can see and access it.

January 23, 2025 at 12:11 pm #16627620

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I can work with what you provided, but the site is not loading for me. I'm receiving a Gateway time-out error. Is it only available in a specific country?

January 23, 2025 at 2:24 pm #16628574

alexandreD-58

Shouldn't be. But you may use the production site instead there is no sensible data on it anyway.

Could you provide me with that same protected reponse form again please?

January 23, 2025 at 2:44 pm #16628687

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

The following reply is private. Thank you.

January 23, 2025 at 4:02 pm #16629031

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for the update; that works for me.

I closely followed the steps you explained.

I believe the issue may be related to the /events/ slug used for the translated page you created in step 6. I suspect this slug might conflict with the Events Custom Post Type (CPT) and could be used to display archives instead.

Could you please try creating a new page as you did in step 6, but use the following slugs: /evenements/ for the French version and /upcoming-events/ (or anything else than single events) for the English version (maybe also try a different slug for French)? Please include the same shortcodes and let me know if that resolves the issue.

January 23, 2025 at 4:20 pm #16629063

alexandreD-58

Ok super that you can get in!

I will try what you suggest tonight. I'll keep you posted.

Thanks!

January 23, 2025 at 4:21 pm #16629064

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you, I hope it helps!

January 23, 2025 at 4:31 pm #16629073

alexandreD-58

Actually I tried right now and it works!!! So nice thank you very much!

January 23, 2025 at 4:32 pm #16629079

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I am glad to hear that it works! Have a nice day!