Currently you can only do this if you know the IDs of the events (days).
Example:
Course x
[wpt_events post__in="123,456,789"]
Course y
[wpt_events post__in="132,457,347"]
Jeroen
That would be a perfectly fine solution, but it seems the post__in argument only works with the [wpt_produsctions] shortcode. I tried using it with [wpt_events], but that didn’t do anything…
You’re right. My mistake.
I had a look at my own code and I think you can just use this:
[wpt_production_events production="123"]
Where ‘123’ is the ID of the production.
Well, I am afraid that isn’t going to help me either. This would list all events belonging to a production sorted by date. It would not group events belonging to a specific course.
I also tried to single out events using the start=date and end=date parameters. But it did not give me results. I tried every date format I could think of, but no luck. Maybe it’s broke?
Anyway, displaying events by it’s ID would be the best solution, but any other way to display a single event would work for me too.
Update:
I can use the start end parameters. The end parameter specifies the “up to” date and not “up to and including”. So to show events on the 1st, I have to specify the end parameter on the 2nd.
As long as I don’t have two events on the same day in the same category this works fine for me.
Still, I would like to vote for a feature where I can show events by ID. That would be better because I could then specify multiple ID’s in one shortcut block. Using the start and end parameters I can only specify one at the time, which makes it harder to style with css. But hey, we are getting some where, I’ll see what I can do with what I have available now 🙂
You may also be able to achieve this with categories:
[wpt_events category__in="123"]
Well, I think I can’t use categories to display a single event as they are linked to the production. So for now I think the start and end parameters are my only option.
Thanks for the feature request, looking forward to it already!
The post__in param was added in v0.10.9.