Comments edgars_juberts started the conversationApril 16, 2024 at 5:44amHow to show scheduled and ongoing events? I have an event that is going for lets say 10 days. In the box grid view or any view I want to display all the events at the current day and the dates after, that are scheduled. But if I do that i get that event (event for 10 days) 10 times in box grid view! I want it only to be displayed one time so it wont spam the box grid with the same event for 10 days. The event for 10 days should be visible till it expires, but it should be visible only ONE time, not 10. Is there a way to do that? 877Zhivko repliedApril 17, 2024 at 8:16amIf you have an event that lasts 10 days it should by default display only once, not 10 times.Could you provide me with link to take a look at the front-end?To display events started in the past but still running you can add minmax_intersect=true to the shortcode.Example: [stec min_date=now minmax_intersect=true]This parameter is available since version 5.2.5. Stachethemes Developeredgars_juberts repliedApril 18, 2024 at 4:33amI will simplify it. I want to have only ongoing events and events that are scheduled and i dont want to show expired events. [stec min_date=now minmax_intersect=true] I tried this shortcode, but it does not show my ongoing event that started on april 2, and is still ongoing till may 3.I am using version: 5.2.9 877Zhivko repliedApril 18, 2024 at 9:23amCould you provide me with link to the front-end? Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 8:59amHi, I have the same issue and can't get the minmax_intersect shortcode to work. I run version 5.2.13. It would be great to be able to show ongoing events. 877Zhivko repliedMay 15, 2024 at 9:00amPaste me the shortcode you're using and attach me an .ics file of your events to test it. Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 9:11amHi Zhivko,wow, that was an instant reply! The shortcode: [stec_events_list filter_calendar=163 order=asc min_date=now max_date=2_years_ahead limit=3 minmax_intersect=true]The web address to the ongoing event: https://jonstenberg.se/event/elmia-polymer-2024/The web page where it doesn't show up: https://jonstenberg.se/The ics file is attached as a zip file.Thanks // BjörnAttached files: Events.zip 877Zhivko repliedMay 15, 2024 at 9:26amI assume you don't see any events with this shortcode?filter_calendar is wrongit should be filter__calendar Stachethemes Developer 877Zhivko repliedMay 15, 2024 at 9:30amThis is what I get as a result: with minmax_intersect=false I get: Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 9:31amOh yes, the shortcode is working. But I only see upcoming events, not ongoing.I'll try to add an extra underscore. 877Zhivko repliedMay 15, 2024 at 9:32amSo you don't see the event on 14 may? Stachethemes Developer 877Zhivko repliedMay 15, 2024 at 9:33amTry clearing your browser cache ( ctrl + f5 on chrome ) Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 9:33amHm, that is exactly what I want. But why doesn't it show up om this page: https://jonstenberg.se/ ? 877Zhivko repliedMay 15, 2024 at 9:38amPlease add events_prefetch=false for now Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 9:45amYes, it was a cache thing. I had to purge it several times, in Wordpress backend as well as the browser cache. Thanks for your help! 877Zhivko repliedMay 15, 2024 at 9:48amI've found the problem and it will be fixed in the next update.Meanwhile I can provide you with instructions how you can fix it by yourself.It seems that when prefetch events is turned on the minmax_intersect parameter is not being passed to the query.FIX:1) Open file /includes/shortcodes/shortcode.stec_events_list.php2) Go to line 170. You will see this code:3) At the beginning add: 'minmax_intersect' => 'minmax_intersect',like this: Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 11:12amThanks!One more question though: is this shortcode supposed to work even for the grid view? I have the same issue here: https://jonstenberg.se/om/jon-stenberg-event/ 877Zhivko repliedMay 15, 2024 at 11:38amYes, when prefetch events option is turned off. I've just found out this bug and will try to fix it as soon as possible.FIX:Similarly to the previous one.1) Open file: includes/shortcodes/shortcode.stec.php2) Line 307:insert on the first line: 'filter__minmax_intersect' => 'minmax_intersect',like this: Stachethemes Developer 1bjornbusen repliedMay 15, 2024 at 1:25pmGreat Zhivko! Thanks a lot! Sign in to reply ...
How to show scheduled and ongoing events?
I have an event that is going for lets say 10 days.
In the box grid view or any view I want to display all the events at the current day and the dates after, that are scheduled.
But if I do that i get that event (event for 10 days) 10 times in box grid view!
I want it only to be displayed one time so it wont spam the box grid with the same event for 10 days.
The event for 10 days should be visible till it expires, but it should be visible only ONE time, not 10.
Is there a way to do that?
If you have an event that lasts 10 days it should by default display only once, not 10 times.
Could you provide me with link to take a look at the front-end?
To display events started in the past but still running you can add minmax_intersect=true
to the shortcode.
Example:
This parameter is available since version 5.2.5.
Stachethemes Developer
I will simplify it. I want to have only ongoing events and events that are scheduled and i dont want to show expired events.
I tried this shortcode, but it does not show my ongoing event that started on april 2, and is still ongoing till may 3.
I am using version: 5.2.9
Could you provide me with link to the front-end?
Stachethemes Developer
Hi,
I have the same issue and can't get the minmax_intersect shortcode to work. I run version 5.2.13. It would be great to be able to show ongoing events.
Paste me the shortcode you're using and attach me an .ics file of your events to test it.
Stachethemes Developer
Hi Zhivko,
wow, that was an instant reply!
The shortcode: [stec_events_list filter_calendar=163 order=asc min_date=now max_date=2_years_ahead limit=3 minmax_intersect=true]
The web address to the ongoing event: https://jonstenberg.se/event/elmia-polymer-2024/
The web page where it doesn't show up: https://jonstenberg.se/
The ics file is attached as a zip file.
Thanks // Björn
Attached files: Events.zip
I assume you don't see any events with this shortcode?
filter_calendar is wrong
it should be filter__calendar
Stachethemes Developer
This is what I get as a result:
with minmax_intersect=false I get:
Stachethemes Developer
Oh yes, the shortcode is working. But I only see upcoming events, not ongoing.
I'll try to add an extra underscore.
So you don't see the event on 14 may?
Stachethemes Developer
Try clearing your browser cache ( ctrl + f5 on chrome )
Stachethemes Developer
Hm, that is exactly what I want. But why doesn't it show up om this page: https://jonstenberg.se/ ?
Please add
events_prefetch=false
for now
Stachethemes Developer
Yes, it was a cache thing. I had to purge it several times, in Wordpress backend as well as the browser cache.
Thanks for your help!
I've found the problem and it will be fixed in the next update.
Meanwhile I can provide you with instructions how you can fix it by yourself.
It seems that when prefetch events is turned on the minmax_intersect parameter is not being passed to the query.
FIX:
1) Open file /includes/shortcodes/shortcode.stec_events_list.php
2) Go to line 170. You will see this code:
3) At the beginning add:
like this:
Stachethemes Developer
Thanks!
One more question though: is this shortcode supposed to work even for the grid view? I have the same issue here: https://jonstenberg.se/om/jon-stenberg-event/
Yes, when prefetch events option is turned off.
I've just found out this bug and will try to fix it as soon as possible.
FIX:
Similarly to the previous one.
1) Open file: includes/shortcodes/shortcode.stec.php
2) Line 307:
insert on the first line:
like this:
Stachethemes Developer
Great Zhivko! Thanks a lot!