Group Event List By Day

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 7 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26636

    Is it possible to group the Event List by day and then set a limit of x amount of days with paging? So it would essentially be the Agenda Widget but show multiple days instead of just one. Or can the Agenda Widget show multiple days (when grouped by day)?

    Brian Reeves
    #26783

    Hi Michael,

    Apologies for the delay in responding to this. The agenda widget cannot show more than one day, when grouped by day.

    Event Organiser provides you with events on a given day (/events/on/2017/03/30) for instance. These are by default paginated in groups of 10, but with a few lines of code you can configure that to show all events on that date.

    You can then add links for the next/previous day with events on (this will require determining what those dates are).

    If you really need to display X dates at once (say using shortcode/widget), then unfortunately you’ll need to implement this yourself. This would involve:

    • From a given start date, determining the next X dates with events on
    • Query events within that range and display them
    • Add links which move the user forward/backward in time (content updated via ajax).
      • The “forward” link would just move to a future date – be it the next date with an event on, or the next date with an event on that is not currently shown. Either way, that new date acts as the start date, and you repeat the above.
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.