• Resolved churcholution

    (@churcholution)


    Hi there,

    How is it possible to use the shortcode (list view) to show up events with a specific date range? For example there should be displayed all events between 2019/3/1 and 2019/3/31.

    Thanks for helping.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author room34

    (@room34)

    Custom date ranges are not currently supported. Would this be used on a one-off page or would you go in as needed to update the date range? Most uses for the plugin have needed a rolling list of whatever is coming in the future.

    Would it be more useful to have a “current month” option for the list view that would just show all of the events in the current calendar month (including past events) and update automatically each time the month changes? I’m just trying to get a sense of the use case here to make sure we’re solving the right problem.

    Thread Starter churcholution

    (@churcholution)

    Thank you for your answer. I want to implement two pages that show monthly programs:
    – Events in the current month. Past events are not very important here, but nice to have.
    – Events for next month.

    For this I would like to use the list view, which is also much better suited for printing.

    I think to use a custom from/to date would be very flexible in different use cases. But maybe there’s another solution.

    Otherwise a month selector in the list view (current and future months) would be useful.

    Plugin Author room34

    (@room34)

    Thanks for this explanation. The challenge with setting custom dates is that you’d need to manually change them every month.

    I’ve just received another request that I think might solve this problem for you. It’s to add a “Next Events” button to the list view that would allow you to load the next count set of events.

    I’ve been thinking about adding an option to set it by number of days, weeks or months out, rather than a specific number of events. If these were combined — as in, show the list by month, rather than by number of events, and then add a “Next Events” button (possibly labeled differently), that would get close to what you’re describing.

    Question for you: what version of WordPress are you running, and if it’s 5.0 or later, are you using the new Block Editor or the Classic Editor plugin?

    Thread Starter churcholution

    (@churcholution)

    That sounds exciting. I have planned to program the call of the shortcode using do_shortcode(), which could dynamically pass the parameters (date from / to).

    Most important need is that it would be possible to show all events of a coming month. e.g. today ist 2019-03-13 and now I want to generate an event list view from 2019-04-01 to 2019-04-30.

    From this, among other things, a printed document will be generated.

    If I have to define the number of days / months / years (as suggested by you), then a start date would have to be defined anyway…

    I’m using WordPress version 5.1 with BeaverBuilder.

    Thanks for this interesting discussion ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom from / to date in shortcode’ is closed to new replies.