Limit number of events shown per category #202
Replies: 5 comments 3 replies
-
your first eme_events call will show all events already (scope=all and limit=0)
Unfortunately currently there is no placeholder that replaces all category ids in one go in eme_for though ... some simple coding could solve this :-) |
Beta Was this translation helpful? Give feedback.
-
Huge thanks for your instant reply and modifications. I changed the plugin files and pasted your suggested code in a test page, but I get a fatal error: |
Beta Was this translation helpful? Give feedback.
-
You are amazing, so quick and helpful. Looks like it works exactly as intended! :)) |
Beta Was this translation helpful? Give feedback.
-
Hi Franky, |
Beta Was this translation helpful? Give feedback.
-
Alright, that seems to work! :)) Thanks again! |
Beta Was this translation helpful? Give feedback.
-
What I'm trying to achieve is to display a chronological list of events, showing only the most recent event in each category. But whatever I try, all events show up in the list. Apparently it is not possible to limit the number of events per category?
This is the code I'm using, first to call the list of events:
[eme_events scope=all order=DESC template_id=3 limit=0]
Next I try to limit the number of events per category in template 3:
[eme_events category=#_EVENTCATEGORYIDS scope=past template_id=9 limit=1]
But all events in each category are displayed. Apparently the limit=1 part is ignored for categories, am I correct? Or am I completely missing something?
I'm not sure if what I'm trying to do is possible, and it's a very niche question, but I thought I'd try anyway. I have figured out a workaround but I'm trying to keep it as simple as possible for the end user.
Beta Was this translation helpful? Give feedback.
All reactions