• Resolved petroglyphic

    (@petroglyphic)


    Is there a way to use the [event_embed] shortcode to call upcoming events, current events, or past events? I am very interested in the flexibility of the embed shortcode, particularly to specify the template. There are times when I need to list events within a specific date range, but also times when I want to separate by upcoming, happening now, or past.

    https://www.ads-software.com/plugins/event-rocket/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Barry

    (@barryhughes-1)

    “Happening now” – as in the event has started but not yet finished – is probably the trickiest part of this. For past events, though, you should be able to do something like this:

    [event_embed from="1500-01-01" to="yesterday"]

    Similarly, for future events, you could do something like:

    [event_embed from="today"]

    Without doing a little custom hackery I’m struggling to think of an easy means of catching ongoing events; I can definitely see the utility in this though and have made a note to put this in place.

    Plugin Author Barry

    (@barryhughes-1)

    Quick update, as of the 2.4 release you should now be able to add where="ongoing" if you only want to list events taking place right now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘future, present, past’ is closed to new replies.