Home › Forums › Calendar Products › Events Calendar PRO › Individual page template to use Event Listing view
- This topic has 6 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
March 7, 2013 at 10:48 am #41888MichaelParticipant
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.
March 7, 2013 at 12:59 pm #41916JonahParticipantHi 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
March 7, 2013 at 1:19 pm #41921MichaelParticipantHi 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!
March 7, 2013 at 1:38 pm #41925JonahParticipantHi 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
March 7, 2013 at 1:54 pm #41929MichaelParticipantWow, now THAT’s how you handle a support request. Thanks!
March 8, 2013 at 2:34 pm #42051JonahParticipantGlad 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,
JonahJuly 7, 2015 at 6:26 am #978771Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Individual page template to use Event Listing view’ is closed to new replies.