Page navigation on List and Map views

Home Forums Calendar Products Events Calendar PRO Page navigation on List and Map views

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1006885
    Stephan
    Participant

    Is there a built-in way to display more page navigation options in the Map and List views? I’m looking for something like this:

    < Previous Page 1 2 3 … 18 Next Page >

    We have ~350 events and navigating page by page can be a bit cumbersome.

    #1007281
    Brook
    Participant

    Howdy Stephan,

    Good question. I often hear the referred to as a “paginator”. I have never seen anyone build one for The Events Calendar. However, it’s definitely possible to do using theme overrides and by running a query to determine how many future/past events there are in total. Our plugin does not run that query by default, as this affects performance and usually users never actually use the numbered links.

    But, if the small sacrifice in performance is worth it to you, you could definitely run a query to see how many events there are, and build a paginator from it. There are many tutorials outy there for building a paginator or pagination. This even shares some code that would be very applicable to a WordPress.

    If you are looking for a prebuilt one though, then as I said I am not aware of anyone who has already built one.

    Does that info help answer your question? Cheers!

    – Brook

    #1007342
    Stephan
    Participant

    Thanks, Brook! I wasn’t quite sure what to call that feature. I don’t know that I need a paginator per se, but giving users an indication of how many events fit their search criteria would be good. I think I have a good idea of how to approach this now, thanks!

    #1007721
    Brook
    Participant

    Awesome! I am happy I could help get you pointed in the right direction. It makes sense you’d want to show the total somewhere. If you do have questions along the way please let us know.

    Cheers!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Page navigation on List and Map views’ is closed to new replies.