• Resolved MichaelWClark

    (@michaelwclark)


    Iv’e been working on several customers mini-cal (Events Cal Pro) trying to provide requested features. The customers are looking to utilize the Upcoming Events widget but they essentially want a multi-month span. The real issue seems to be when we are approaching end of month. For example on Sept 29th the widget is empty as the next event wasn’t until Oct 3rd, but the customer wants the next 5 events to display regardless of date, as long as they are future, and with a taxonomy query added on (just looking for featured category, ‘321’ in this example).

    Using the https://gist.github.com/michaelwclark/6f64a50a98cedbad8b94 code (made a few modifications for my use). I was able to get the next x events displaying for the month when the next event starts. However this will become an issue on the later part of the month when there are less than 5 events remaining as the query is only grabbing current month as dictated by the query modification in above code.

    My thought for a custom ‘fix’ for this (really an enhancment to existing widget that works great) would be to do a get_next_date for x number of events, use the start date month as is already done in the fast forward code above, but also add an additional query for the next N months until our x is fufilled, or just append results doing the same query but for the next month in line.

    All this being said, I am years behind on wordpress widgets and new to this particular plugin/widget. Would this proposed solution be the most effective way to modify the mini-cal widget, or would I be better off writing a custom widget that utilizes the exposed functionality of the pro cal?

    A little direction or thoughts would be appreciated very much. I should note that both customers that are looking for this are Pro users. Also if/when I come up with a working solution I will gladly post it public to be used again if someone needs.

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
  • Hey MichaelWClark,

    Thanks for reaching out here.

    This is definitely an interesting proposal. I can understand the perspective that you’re coming from here. However from our perspective, when the mini-calendar is being used it would most likely cause much more confusion if the current month is being displayed and events for following months are being listed below it. It sort of breaks the intention of the month view approach to that widget.

    The alternative is the list widget that does display whatever number of events are upcoming irregardless of the month.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘FastForwarding Mini-Cal for multiple months.’ is closed to new replies.