Individual page template to use Event Listing view

Home Forums Calendar Products Events Calendar PRO Individual page template to use Event Listing view

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #41888
    Michael
    Participant

    Hi there,

    This may be documented somewhere I’m not seeing, so my apologies if so. We are trying to create another unique page template that shows the event listing. I am concerned mostly with how the pagination (e.g. Previous Events, Next Events) might work on this page. Is it possible to create a brand new, unique page template that shows the event listing and have the pagination work and still use this template? Or would the pagination link to the main site, e.g. DOMAIN.COM/events/past/?

    Our site url is http://www.nationalharbor.com, with the events on http://nationalharbor.com/events.

    #41916
    Jonah
    Participant

    Hi Michael,

    If you setup a page with a custom query using tribe_get_events() or WP_Query pagination should be completely in your control. WP_Query might work a little bit better for something like this though.

    Does that answer your questions?

    – Jonah

    #41921
    Michael
    Participant

    Hi Jonah! Thanks for the quick reply.

    Can you give me a code sample of how to load in using WP_Query? I’m just curious how you would set it up. If you don’t mind, it would help a ton––and I greatly appreciate it!

    #41925
    Jonah
    Participant

    Hi Michael,

    Sure thing. Here’s a gist with a custom query using some different options: https://gist.github.com/jo-snips/5112025 – feel free to modify or remove whatever you don’t need. For reference on what else you can do with the query, I suggest taking a look at the WP_Query doco: https://codex.wordpress.org/Class_Reference/WP_Query

    I hope that helps!

    – Jonah

    #41929
    Michael
    Participant

    Wow, now THAT’s how you handle a support request. Thanks!

    #42051
    Jonah
    Participant

    Glad to hear that helped Michael. If there’s anything else you need, just let us know. If you feel inspired we’d sure appreciate a review here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar

    Thanks,
    Jonah

    #978771
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Individual page template to use Event Listing view’ is closed to new replies.