• Resolved jbrandligt

    (@jbrandligt)


    Hi Jeroen,

    Since I also use this plugin for courses spanning multiple days, I would like to know if there is a way to display events belonging to a particular production, or group events by production.
    So for instance, for a course consisting of four days (events), I would like these days to be grouped together in the event lists. Can this be done?

    Thnks!

    https://ww.wp.xz.cn/plugins/theatre/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeroen Schmit

    (@slimndap)

    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

    Thread Starter jbrandligt

    (@jbrandligt)

    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…

    Plugin Author Jeroen Schmit

    (@slimndap)

    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.

    Thread Starter jbrandligt

    (@jbrandligt)

    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.

    Thread Starter jbrandligt

    (@jbrandligt)

    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 🙂

    Plugin Author Jeroen Schmit

    (@slimndap)

    You may also be able to achieve this with categories:

    [wpt_events category__in="123"]
    Plugin Author Jeroen Schmit

    (@slimndap)

    I added your feature request on GitHub:
    https://github.com/slimndap/wp-theatre/issues/128

    Thread Starter jbrandligt

    (@jbrandligt)

    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!

    Plugin Author Jeroen Schmit

    (@slimndap)

    The post__in param was added in v0.10.9.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Showing/grouping events’ is closed to new replies.