offset and show_recurrent_events_once behavior #938
Replies: 7 comments 5 replies
-
|
untested, but do try this change: |
Beta Was this translation helpful? Give feedback.
-
|
So let me try at this again. What I think the issue is, is that So, if I had: Item 1 (recurrence 1) If I did But that's not what I was hoping for. I was hoping for the following Does that make sense? Currently, in my Upcoming Events section on fbcfairmont.com I am having to get very creative and use multiple [events limit=4 show_reccurent_events_once=1] with various templates and then do |
Beta Was this translation helpful? Give feedback.
-
|
The reason is that the offset is being done before the limit, and there the recurrent events are 'included'. This is because it is not an easy sql to write (because you want to make sure you have 1 recurrent event shown too, even if some of the series are not in scope of what you want to show). |
Beta Was this translation helpful? Give feedback.
-
|
ok, first update to the latest EME release and then download eme-events.php from github: https://github.com/liedekef/events-made-easy/blob/main/eme-events.php (and replace on your end). See if that gives an expected result (it does here: I learned about GROUP BY combined with CASE ...) |
Beta Was this translation helpful? Give feedback.
-
|
I first need to run more tests, since group by doesn't necessarily give you the first row ... |
Beta Was this translation helpful? Give feedback.
-
|
as suspected, there was an unpredictable result (due to the GROUP BY). Now fixed, please get the latest eme_events.php code and try again |
Beta Was this translation helpful? Give feedback.
-
|
then keep using that new file until the next version releases. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there Franky,
Question. I'm calling my events list in a bit of an unusual way (via the
offsetparameters) so that I can build them in my page builder, instead of from scratch with html. I'm calling the [events_list] shortcode with templates to dynamically populate my different events where I want them and then usingoffsetto shift between first, second, and third events (and so on).However, I'm finding that that the
show_recurrent_events_onceparameter isn't exactly surfacing what I want. Because each instance is technically a new [events_list], my recurring events are all showing up. I guess I was hoping theoffsetrecurring event would be counted so that the remaining events wouldn't include the recurring event.Boy, that's not very clear. Here are my events
Volunteer Work Day,
You can tell which ones are recurring, right?
Here is what I'm calling:
[events_list offset=0 show_recurrent_events_once=1]
[events_list offset=1 show_recurrent_events_once=1]
[events_list offset=2 show_recurrent_events_once=1]
[events_list offset=3 show_recurrent_events_once=1]
Ideally, I'd like that to return:
So here's what I'm wondering. I wouldn't want my fringe application to mess anyone else up. Can you introduce a show_recurrent_events_once=2 option that lets skipped-via-offset recurrent events be counter towards the "once"?
I hope that makes sense.
Beta Was this translation helpful? Give feedback.
All reactions