Hello,
On our website, events categorized as L2 do not display when using the add_eventon shortcode, while they do appear with the add_eventon_list shortcode.
Here is the shortcode that doesn’t work : [add_eventon event_count=”10″ show_limit=”yes” show_limit_ajax=”yes” ux_val=”4″ event_past_future=”past” show_et_ft_img=”yes” vent_order=”DESC” lang=”L2″]
Here is the shorcode that work : [add_eventon_list event_past_future=”future” hide_empty_months=”yes” ux_val=”4″ hide_mult_occur=”no” show_repeats=”yes” show_et_ft_img=”yes” lang=”L2″]
We would like to be able to display all L2 events with add_eventon. We need help, thank you.
URL of a test page we made: https://domainedespaysdenhaut.com/en/test/
Feb 10,2025 AT 1:33PM - 1 week ago -Hello,
When I create a new event with “Langue FR”, it’s showing:
But with EN, it doesn’t:
It seems there is an incompatibility issue with Polylang. EventON only has a built-in compatibility with WPML:
https://docs.myeventon.com/documentations/wpml-eventon-front-end/
But we cannot assign FR to all the events because the langage switcher button won’t work properly anymore for the events, so it’s not an option for us.
The thing is it works properly with [add_eventon_list] in both langage L1 & L2 so why not with [add_eventon] ? There is something that needs to be fixed with add_eventon
The thing is it works properly with [add_eventon_list] in both langage L1 & L2 so why not with [add_eventon]
If you completely disable Polylang, does it work?
We cannot do that the website is in production with a lot of traffic, and we need to use Polylang anyway
Even while removing all options [add_eventon lang=”L2″] shows nothing but [add_eventon_list lang=”L2″] works normally. There seems to be an issue with the shortcode add_eventon specifically
Could you create a clone of the website, so we can try disabling the plugin there?
But we need Polylang, we cannot disable it.
As shown in this screenshot, the shortcode [add_eventon_list lang=”L2″] works well with Polylang enabled so it’s not related to Polylang. The issue is related to add_eventon : [add_eventon lang=”L2″].
I added cal_init_nonajax=”yes” to the shortcode and it’s showing events for February, but when you switch it still doesn’t work. So it seems that since Main Calendar and Event Lists load events differently it explains https://helpdeskx.s3.amazonaws.com/wp-content/uploads/2025/02/24091154/eventon-bug-1.png
However, I also added a second page for FR language and it shows all events correctly:
https://domainedespaysdenhaut.com/test-for-evento/
I believe that the issue is that your events have translations for each language (with Polylang):
When your third-party plugin tries to load events, it simply cannot since EventON and Polylang aren’t compatible.
Please check at this WPML guide:
https://docs.myeventon.com/documentations/wpml-eventon-front-end/
You see how you need to identify languages in order to make WPML + EventON work together:
wpml_l1=”fr” wpml_l2=”es”
Can you escalate this ticket to a developer or a higher level? I believe the issue is in the AJAX request code. Our hypothesis is that the language parameter might be missing in the code. It just needs to be fixed, and add_eventon will work fine, just like add_eventon_list.
Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer! Also please disable any IP blocking on your site if there are any.
Thanks let us know!
Hello, it’s been a few weeks. Did you get any news from the developer?
Thanks.
We are sorry for the delay. Ashan will take a look ASAP.
Hello Tonny, sorry for the delay and we appreciate your patience!
Ok looks like you are using eventon language corresponding events. Seems the main eventON calendar does not load events when you switch months. But if you set fix month year it loads events. Let me see whats going on 🙂
ok It seems if you have a language assign to a page or post via polylang. Then wp_query will only return that language assigned post/page. So eventON lang value is pretty useless because it gets overridden with polylang.
Hello,
Thanks for your answer. So is there any way to make the query work with add_eventon, the same way as it works for add_eventon_list? .
I don’t think it’s a plugin compatibility because add_eventon_list works well (with both languages), there is probably something missing in the query of add_eventon.
Hello Karine, I am also hoping it is something we can fix from EventON. But I am not finding any ways how to.
If you look the calendar when we set to load events without AJAX at first, the march events load fine. But when you switch event using AJAX, it doesnt load the correct events.
It seems to me like, when ajax is called, what is put out is controlled by the polylang. the wp-query. Would it be possible for you to get an answer from polylang team to see if they modify wp-query when ajax is running?
Because eventON is passing the L2 value correctly into AJAX to get events that have L2 value set to. But it is not returning any event posts because something is being done which stops returning those event posts.